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. Good one......
Thanks.

View Tutorial          By: Suresh at 2013-03-14 07:38:45

2. It has been really helpful for me to gather inform
View Tutorial          By: sonam at 2009-03-08 09:41:33

3. Hi
I have done all the steps mentioned abo

View Tutorial          By: Asela at 2012-01-26 18:53:51

4. thank u very much......... its very helpful
View Tutorial          By: ankit at 2012-10-14 20:52:24

5. very good site for qustion answer. I just spellbo
View Tutorial          By: Anindya Mitra at 2012-04-22 16:28:42

6. the 2 not required lines
1) #include

View Tutorial          By: saurabh at 2012-02-20 06:33:57

7. useful for me
View Tutorial          By: ganga at 2010-10-06 00:51:51

8. Hi ! do u know have use FileOutputStream in Surfac
View Tutorial          By: lukas at 2011-07-18 16:55:20

9. well understood
View Tutorial          By: shanthini at 2014-04-07 17:19:20

10. Dear Sir,

I have done my B.E Degree

View Tutorial          By: amit at 2012-02-03 11:07:35