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
CASE 2010 UNION 2007 YEAR science papers physics 2009 graph CLASS SELECT paper computer 2006 2004 prelim ICSE question RESULT
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
ICSE - PATTERN EmptyFri Jun 08, 2018 2:34 am by adianadiadi

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

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

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

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

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

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

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

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

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



Search if you can't find it here

PATTERN

View previous topic View next topic Go down
AuthorMessage
Aniruddha




ICSE - PATTERN Vide
PostSubject: PATTERN ICSE - 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


ICSE - PATTERN Vide
PostSubject: icse iit cbse java free help program pattern ICSE - 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


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

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




ICSE - PATTERN Vide
PostSubject: Re: PATTERN ICSE - 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-