View Code of Problem 52

#include <stdio.h>
#include <string.h>
int main(){
  char a[100];
  char b[100];
  int i,j=0,len;
  gets(a);
  len=strlen(a);
  for(i=len-1;i>=0;i--){
    b[j++]=a[i];
  }
  b[j]='\0';
  puts(b);

return 0;
}

Double click to view unformatted code.


Back to problem 52