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. gud example, we welcome you
View Tutorial          By: jasim Khalid almurakh meherbani at 2010-09-20 03:14:25

2. great work! such a super explanation.. thanks a lo
View Tutorial          By: vinu dominic at 2012-02-08 06:16:48

3. Thank you so much....
I am going to have ja

View Tutorial          By: Mehrnoosh at 2013-06-09 16:50:23

4. Thank you very much for your help!!
View Tutorial          By: Ajay Singh at 2009-10-21 22:17:21

5. Exception in thread "main" java.lang.NoC
View Tutorial          By: Lahrach Abdelhakim at 2015-02-18 14:38:03

6. I need Structs full notes with examples
View Tutorial          By: Thomas at 2012-10-24 11:18:11

7. Very good example .!
Ty

View Tutorial          By: Mprogrammer at 2014-11-25 12:10:21

8. Thank you for the tutorial. I want to create a cat
View Tutorial          By: Lue at 2012-07-09 10:40:08

9. im biginner of java programming, please give me in
View Tutorial          By: siva at 2011-11-04 06:40:45

10. Wow Such a good tutorial. It really really make me
View Tutorial          By: Anonymous at 2010-02-19 05:53:11