View Code of Problem 52

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
 
char a[105];
 
int main()
{
    int n;
    while (gets(a)) {
        int len = strlen(a);
        for (int i = len - 1; i >= 0; i--) {
            putchar(a[i]);
        }
        
        putchar('\n');
    }
}

Double click to view unformatted code.


Back to problem 52