Comment on Tutorial - Recursion in java By aathishankaran



Comment Added by : praveen

Comment Added at : 2011-08-07 20:22:09

Comment on Tutorial : Recursion in java By aathishankaran
result = fact (n-1) * n;
i didn't got this concept ..
if i put n=3 then the answer is
(3-1)*3 = 6
and if i put n=4 the answer is
(4-1) *4= 12 but the real answer is 24 .how it's so. can u plz explain me . how it exactly works.


View Tutorial



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. hi!! friends i executed the code
and i am

View Tutorial          By: chennareddy at 2007-10-15 00:07:30

2. can client use prinwriter?????
View Tutorial          By: sujay at 2009-02-20 00:23:33

3. If one can't use English grammar correctly and wit
View Tutorial          By: Java Man at 2011-12-09 06:04:14

4. i m new in java plz send package of simple program
View Tutorial          By: iqbal ahmad at 2009-09-07 01:26:41

5. Cool! Downloading the whole file with the HttpCon
View Tutorial          By: Luddite at 2010-06-26 12:26:26

6. Hi Ramlak

First of all thanks for u

View Tutorial          By: Vikas sharma at 2010-05-08 01:09:31

7. good example need some more explanation on notify
View Tutorial          By: prashant at 2009-09-08 19:29:54

8. I have try this code.
Code has Run succeefu

View Tutorial          By: Avinash at 2010-06-07 05:38:26

9. ya its good example
View Tutorial          By: vijaychellappa at 2010-11-10 04:57:42

10. This matter is really too good.
View Tutorial          By: Ashwin perti at 2009-07-08 04:43:55