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. u can try this out it will satisify u:)
imp

View Tutorial          By: vallabh at 2014-10-04 17:44:18

2. whether the below command will work
Math o

View Tutorial          By: Gowrish Sagar at 2015-10-05 10:36:35

3. Can you please tell me what software to be install
View Tutorial          By: Heena Yeole at 2015-03-10 18:05:18

4. How to print lee alone for the eg above........I n
View Tutorial          By: sa at 2013-04-01 07:43:03

5. This is great, hope to learn more from this commun
View Tutorial          By: Wamaguru at 2014-07-12 09:05:30

6. really nice and perfect ! thnak you very much for
View Tutorial          By: arash at 2013-07-16 10:58:45

7. How do use qsort to sort lines in text file?
View Tutorial          By: kenny at 2008-11-18 08:59:55

8. dear! can you show me about "How to start as
View Tutorial          By: vatha chhean at 2011-05-31 07:34:42

9. nice example's
View Tutorial          By: karthi at 2011-01-30 02:25:36

10. please try to elaborate the explanation with examp
View Tutorial          By: bhavitha at 2014-02-21 06:09:12