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. Windows XP
libmySQL.dll in package MySQL5.1

View Tutorial          By: Bingo at 2009-11-07 20:11:52

2. please send me Java programs
View Tutorial          By: Jayita at 2009-11-06 08:19:59

3. Very good. Keep it up.
View Tutorial          By: jk at 2009-05-23 11:00:29

4. Sir,
i am implementing the above code in w

View Tutorial          By: Rahul Singh at 2009-09-01 04:23:25

5. this code runs permanently!!! created by diko(Turk
View Tutorial          By: ali at 2013-08-12 07:56:01

6. I can't compile the source with Dev-C++ 4.9.9.2, h
View Tutorial          By: ToKha at 2013-11-19 01:32:34

7. hi.. all.. its working fine for me... thank u ver
View Tutorial          By: Padmaraj at 2009-04-01 09:42:29

8. Very Easy To Understand
View Tutorial          By: Najeeb at 2011-06-09 04:12:34

9. good resource
View Tutorial          By: AJITH C K at 2013-04-10 17:45:51

10. dude its forces closes everytime what to do .....h
View Tutorial          By: raam at 2013-01-10 13:05:57