Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  India NewsIndia News  
Keywords
2009 graph CLASS 2006 computer science ICSE YEAR papers question SELECT prelim UNION 2004 RESULT paper physics 2010 CASE 2007
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
PATTERN EmptyFri Jun 08, 2018 2:34 am by adianadiadi

» Diamagnetic - Paramagnetic - Ni(CO)4, [Ni(CN)4]2- and [NiCl4
PATTERN EmptyFri Apr 06, 2018 1:05 am by adianadiadi

» IIT JEE chemistry solved interactive question paper
PATTERN EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
PATTERN EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
PATTERN EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
PATTERN EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
PATTERN EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
PATTERN EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
PATTERN EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
PATTERN Vote_lcapPATTERN Voting_barPATTERN Vote_rcap 
Anu..i luv icse...:)
PATTERN Vote_lcapPATTERN Voting_barPATTERN Vote_rcap 
G-7
PATTERN Vote_lcapPATTERN Voting_barPATTERN Vote_rcap 
siya
PATTERN Vote_lcapPATTERN Voting_barPATTERN Vote_rcap 
Candy
PATTERN Vote_lcapPATTERN Voting_barPATTERN Vote_rcap 
jOhNy
PATTERN Vote_lcapPATTERN Voting_barPATTERN Vote_rcap 
Apurva
PATTERN Vote_lcapPATTERN Voting_barPATTERN Vote_rcap 
WinRrule
PATTERN Vote_lcapPATTERN Voting_barPATTERN Vote_rcap 
ambili
PATTERN Vote_lcapPATTERN Voting_barPATTERN Vote_rcap 
saif
PATTERN Vote_lcapPATTERN Voting_barPATTERN Vote_rcap 



Search if you can't find it here

PATTERN

View previous topic View next topic Go down
AuthorMessage
Aniruddha




PATTERN Vide
PostSubject: PATTERN PATTERN EmptyFri Sep 19, 2008 10:54 am

CAN ANYONE DO THISSSSSS.........

1********** 120
****2****24
******6****
****2**** 24
1********** 120
//"*" INDICATES SPACES
logic::: 1=1*1;
2=1*2;
3=1*2*3;..............
patten logic::: two loops suppose;;;
for(int m=1;m<=5;m++)
for(int n=1;n<=5;n++)
if(m==n || m+n==6)
//then call the factorial function...
PLEASE HEP MEEEEEE!!!!!!!!!!!!!!!!!!!!!!! No No No No


Last edited by Aniruddha on Fri Sep 19, 2008 11:00 am; edited 2 times in total (Reason for editing : SIMPLE)
Back to top Go down
abhas
Active member
Active member
abhas


PATTERN Vide
PostSubject: icse iit cbse java free help program pattern PATTERN EmptySat Sep 20, 2008 10:39 am

//you logic is correct i have made your prog using your logic....
//i have used isc style that you will be using in 11th 12th in class 10th you should consider pat class only or
//if you wish you may consider both classes
//i have tested prog in jdk1.5.0


class pattern_new
{
public static void main(String args[])
{
pat obj=new pat();
pat.run();
}
}


class pat
{
//to get factorial (i love this logic) but you may use simple logic too
public static int factorial(int num) {
//factorial not defined for negative ints
if (num < 0) return -1;
if (num == 0) return 1;
if (num <= 2) return num;

//RECURSIVE STEP: n! = n * (n-1)!
return (num * factorial(num - 1));
}
public static void run()
{
for(int m=1;m<=5;m++)
{for(int n=1;n<=5;n++)
{
if(m==n || m+n==6)
System.out.print(factorial(n));
else System.out.print(" ");
}
System.out.println();
}
}
}
Back to top Go down
Arya Nair
Active member
Active member
Arya Nair


PATTERN Vide
PostSubject: Re: PATTERN PATTERN EmptyMon Feb 16, 2009 1:44 pm

is this an important question?
Back to top Go down
Sponsored content




PATTERN Vide
PostSubject: Re: PATTERN PATTERN Empty

Back to top Go down

PATTERN

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: English :: Julius Caesar Question Answers-