View Code of Problem 52

#include<string.h>
#include<stdio.h>
int main()
{
   char a[101];
   gets(a);
   int n=strlen(a);
   int i;
   for(i=n-1;i>=0;i--)
    printf("%c",a[i]);
   printf("\n");
    return 0;


}

Double click to view unformatted code.


Back to problem 52