Comment on Tutorial - Recursion in java By aathishankaran



Comment Added by : pp

Comment Added at : 2011-08-07 20:20:33

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. plz


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. This is a simple app and its working good.......
View Tutorial          By: sathish at 2012-04-23 12:16:07

2. Hi,

Thanks for this example (glad t

View Tutorial          By: Thor at 2007-10-06 15:12:28

3. helpfull !!!!
View Tutorial          By: Anonymous at 2009-05-12 03:48:15

4. I made this "In your AndroidManifest.xml file
View Tutorial          By: lalo at 2011-11-20 05:56:43

5. plz send inheritance concept,how to use final,thi
View Tutorial          By: sobha at 2010-02-14 08:29:33

6. syntax of java program in looping statement
View Tutorial          By: lokesh at 2009-03-25 06:57:56

7. how to download suport to my phone
send me

View Tutorial          By: dede.mouljadie at 2012-04-28 09:39:21

8. hi iam new to java i need simple java programs pls
View Tutorial          By: naga at 2010-10-06 03:45:18

9. click the line which is shown in this site:

View Tutorial          By: hi to get 5 files at 2010-09-22 03:10:36

10. I want to change software of micromax x455 mobile
View Tutorial          By: Sachin at 2012-12-29 09:39:58