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. Not bad,but need some implementation
View Tutorial          By: surjeet katwal at 2010-01-19 04:41:15

2. Thanks a lot.
View Tutorial          By: Nirwana at 2009-04-24 05:17:10

3. sir i am mca student. i can choose my flatform is
View Tutorial          By: sridevi at 2012-06-06 10:21:39

4. How can I use stack in entering a letter and will
View Tutorial          By: mards at 2014-10-17 12:18:34

5. can any beginners can try creating web pages

View Tutorial          By: jo at 2015-07-28 19:35:11

6. Hi Ramalak,
My modem is connected to COM3 p

View Tutorial          By: divya at 2008-04-30 23:19:26

7. I've tried this code but i am gettting error at li
View Tutorial          By: Iqra at 2012-12-13 10:43:12

8. nice overview on struts.....
View Tutorial          By: priyanka at 2010-08-23 00:13:33

9. sir there is no startapp(),destroyapp() and pause
View Tutorial          By: Sathish at 2012-08-20 08:49:33

10. its so nice
View Tutorial          By: senthilkumar at 2010-11-11 02:44:37