Comment on Tutorial - C++ Recursion function explained using Fibonacci series By Emiley J



Comment Added by : Ali Jafar

Comment Added at : 2011-09-18 03:47:47

Comment on Tutorial : C++ Recursion function explained using Fibonacci series By Emiley J
# include <iostream.h>
void main()
{
int i,ary[10];
ary[0] = 0;
ary[1] = 1;
for(i=2;i<=9;i++)
{
ary[i] = ary[i-2] + ary [i-1] ;
}
for(i=0;i<=9;i++)
{
cout<<" "<< ary[i];
}
}


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. hi.. how can i extrate day, month, year from date
View Tutorial          By: avkash at 2010-10-03 05:19:58

2. Hello,

A volatile variable does not

View Tutorial          By: aayush at 2009-11-16 07:38:23

3. what is differences between application scope and
View Tutorial          By: suresh at 2013-05-13 13:03:12

4. Thanks for good atricle. But this code will always
View Tutorial          By: Binod Suman at 2009-05-28 09:40:48

5. Hello,
how to use tjis tut for load image f

View Tutorial          By: zero at 2013-10-30 11:45:33

6. Thank you so much. You made my day. God bless you
View Tutorial          By: Gautam at 2012-09-18 16:24:19

7. Hi mate,
When I compile the DomParserExampl

View Tutorial          By: Suresh Kumar D at 2013-06-25 07:06:19

8. finally i got it !!! thanks a lot!!! you really he
View Tutorial          By: maher at 2010-11-11 02:44:07

9. HI can you send send sms throgh java program above
View Tutorial          By: sasikumar at 2007-02-27 01:39:11

10. nice tutorial
View Tutorial          By: Amit at 2010-04-16 04:48:52