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



Subscribe to Tutorials

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. Your explanation is perfectly clear and not in nee
View Tutorial          By: Percy at 2009-06-08 14:14:39

2. hi its working nice,can u plz help me how to fetch
View Tutorial          By: Manju gowda at 2014-02-21 07:23:44

3. Hi Ramlak, Can you please let me know to resolve t
View Tutorial          By: Braj at 2009-01-29 08:50:33

4. How to execute above sqlstr file.
View Tutorial          By: shriyash at 2014-02-23 09:32:36

5. Hi Steven. It looks like your example program does
View Tutorial          By: Ben Hallinan at 2008-04-25 08:36:42

6. Thanks for the Topic. But there are many more comp
View Tutorial          By: Uditha Madumal at 2010-09-15 19:39:13

7. I think this code is just simple enough to be foll
View Tutorial          By: WAQ at 2010-11-24 10:41:58

8. the language of your information is easu and more
View Tutorial          By: shivprakashmeena at 2010-08-06 22:18:09

9. but include<iostream> is main function.
View Tutorial          By: glen at 2009-02-03 22:19:22

10. Getting coding from this is very easy to me...
View Tutorial          By: shanmugaraja at 2009-09-09 01:50:02