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. By running ListPorts, I am not getting any output
View Tutorial          By: Srinivasa Rao at 2009-04-02 05:17:20

2. I need full code for how to connnect pc to mobile
View Tutorial          By: Vijay at 2009-08-23 23:38:05

3. very nicely explained,
thank you

View Tutorial          By: Amin at 2010-04-14 09:40:30

4. Good one. Keep up the good work.
View Tutorial          By: zubair at 2012-02-23 10:18:36

5. please let me know the complete refernce with samp
View Tutorial          By: NARI at 2009-04-11 23:50:03

6. Hi Shweta, Thanks for pointing the typo error in t
View Tutorial          By: Jagan at 2008-07-12 21:36:46

7. this pionter is used to help compiler to understan
View Tutorial          By: RUB NAWAZ at 2008-10-31 11:38:09

8. You should consider using different threads that a
View Tutorial          By: Jeremy at 2010-01-13 23:02:11

9. when i copy paste your program or source code

View Tutorial          By: hello at 2010-07-09 18:56:23

10. Thanks for this tip -
I'm currently workin

View Tutorial          By: Helen at 2009-06-16 05:28:24