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



Ask a Question

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 have loaded allthe 5 java files.But how to imple
View Tutorial          By: devi at 2008-04-01 01:02:28

2. excellent
View Tutorial          By: shamim at 2011-07-08 02:39:31

3. very useful example. Thanks for this help.
View Tutorial          By: Saurabh at 2010-04-23 04:50:13

4. plz can u give me code for database connectivity f
View Tutorial          By: nilam at 2012-03-15 12:54:07

5. It is clear but at the starting code there is a wr
View Tutorial          By: Kiranmoy Pradhan at 2015-08-20 21:55:15

6. excellent..... thanks it help me a lot.......
View Tutorial          By: REJAPUTRA at 2009-10-23 09:19:25

7. How to Use Code in my Page ? plz give me the sugee
View Tutorial          By: jaty at 2015-08-19 12:25:20

8. To 25
void *memset( void *buffer, int ch, s

View Tutorial          By: Doniv at 2011-12-15 10:10:52

9. Nice Intro to start J2Me
View Tutorial          By: Mak at 2009-07-04 10:36:00

10. your nice
View Tutorial          By: rymer at 2011-03-23 01:30:41