Text Inverting c++ (Pembalik Teks)

code for inverting text :
#include<iostream.h>
#include<conio.h>
char a[100];
int b,c,d;
void main()
{

cout<<"insert word = ";cin>>a;
b=strlen(a);
for(c=b;c>=1;c--){
char d=a[c-1];
cout<<d;
}
getch();
}
Previous
Next Post »