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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. from docs api api/java/awt/Frame/setOpacity:
View Tutorial By: robert at 2014-12-12 07:48:59
2. good explanation,
Thanks
View Tutorial By: venkatesh at 2012-01-04 08:43:48
3. im biginner of java programming, please give me in
View Tutorial By: siva at 2011-11-04 06:40:45
4. if a class is declared as abstract and it contains
View Tutorial By: nagaraj at 2012-04-25 17:12:30
5. Hai,
dis is anu, dng final year. i need to
View Tutorial By: anu at 2012-07-12 15:41:19
6. Can I use my Nokia 6300 as my GSM Modem???? Please
View Tutorial By: deKi at 2009-03-17 03:54:59
7. Thanks,
But i would like to use an array li
View Tutorial By: Gustavo at 2011-06-15 21:03:20
8. Good one ! and simple tutorial
View Tutorial By: Sim at 2011-02-24 01:57:53
9. well example, but i have to send the received list
View Tutorial By: amit kumar at 2011-02-21 00:43:15
10. I am an MCA student i wanna know whether one can s
View Tutorial By: RAJU.K at 2009-07-24 02:28:21