+ 1

How to write reverse series of fibonacci.?

the fibonacci series is 0 1 1 2 3 5 8 13 21 ......so on

28th Aug 2016, 9:32 AM
Harshit Gupta
Harshit Gupta - avatar
1 Antwort
0
try this in turbo c++. you can reverse any string # include <iostream.h> #include <conio.h> #include <string.h> void main () { clrscr (); char a[30]; cout <<"Enter string="; cin>>a; int len=strlen (a); cout <<"\n Reverse string is="; for (int i=len-1; i>=0;i--) cout <<a [i]; getch (); }
29th Aug 2016, 3:02 PM
Ritika meena
Ritika meena - avatar