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. thanks a lot fo the help offered.
View Tutorial          By: Douglas Olupotdolupot@cit.mak.ac.ug at 2012-10-31 05:37:04

2. Gracias. Ya me estaba poniendo nervioso. No pod&At
View Tutorial          By: Manuel at 2015-07-30 11:34:54

3. nice to read thank you for the notes. that helps m
View Tutorial          By: V.Ranjith kumar at 2010-08-12 06:13:03

4. Thank you very much for your help,
this co

View Tutorial          By: AA at 2011-09-09 14:24:45

5. Hi,
I am designing a client server multipla

View Tutorial          By: Varun Gupta at 2012-10-15 00:01:57

6. great material for language bugs....
View Tutorial          By: manoj kapri at 2009-11-30 00:30:13

7. this code is very and help in our project BUT
View Tutorial          By: bhamre sandeep at 2010-02-28 03:02:53

8. Really awesome keep posting ........
View Tutorial          By: viswanath at 2013-01-30 07:38:13

9. How to find port names in pc? like COM1 etc ? i wn
View Tutorial          By: layiba at 2013-12-25 08:28:30

10. Rattling explanation .....thnx brother
View Tutorial          By: zorro at 2011-06-16 05:05:43