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. I am getting this exeception when trying to send m
View Tutorial          By: praveen at 2012-12-27 11:15:14

2. Hi sir, Your explain is very good sir,
View Tutorial          By: Surendra Majji at 2013-02-14 04:55:49

3. It worked for me. Thanks a lot. Hi Sasikumar, I th
View Tutorial          By: Ramlak at 2007-03-05 01:53:14

4. hai, i tried the abvoe code, m getting the follwin
View Tutorial          By: charan at 2011-10-20 12:59:59

5. hi gud mrng........
i wanna connectivity of

View Tutorial          By: sac at 2011-09-02 04:56:43

6. Error loading win32com: java.lang.UnsatisfiedLinkE
View Tutorial          By: Dinesh557 at 2008-09-23 04:18:47

7. Hi,

I am using this code and gettin

View Tutorial          By: Akanksha at 2014-01-20 10:31:31

8. This is first time i am using this net
View Tutorial          By: selvam at 2008-08-19 00:04:44

9. sample program in packages and interface combined
View Tutorial          By: priya at 2009-09-10 05:42:31

10. One of the best
View Tutorial          By: Sudhir at 2009-12-22 01:45:28