+ 1
How to write reverse series of fibonacci.?
the fibonacci series is 0 1 1 2 3 5 8 13 21 ......so on
1 Answer
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 ();
}