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. Hi,

I can use this programme to sen

View Tutorial          By: malak at 2012-11-25 17:21:00

2. excellent...... thank you so much.
View Tutorial          By: balaji at 2011-07-19 07:56:08

3. A phone is considered a good phone if all of the f
View Tutorial          By: harish at 2012-12-24 06:59:04

4. Hi,
I am getting this exception..My modem i

View Tutorial          By: puneet at 2010-04-22 10:22:18

5. i want to know java coding
View Tutorial          By: carmela azarce at 2012-08-08 02:47:13

6. Gracias.
View Tutorial          By: maiki at 2015-03-05 15:20:05

7. Hello , How could i Run java.comm on eclipse

View Tutorial          By: Fiars at 2011-04-11 04:53:45

8. i want my program to allow more than one trainee&r
View Tutorial          By: carl at 2011-01-30 22:21:21

9. 1==how can we use vb.net web service data in JSF?<
View Tutorial          By: kumaraswamy at 2009-01-06 23:56:53

10. when I exported the data to excel there is a value
View Tutorial          By: mizhelle at 2015-10-10 13:17:56