View Code of Problem 52

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include<math.h>
void main() {
    char str[100];
    gets(str);
    int len = strlen(str);
    for (int i = len - 1; i >= 0; i--) {
        if (i == 0) {
            printf("%c\n", str[i]);
        }
        else {
            printf("%c", str[i]);
        }
    }
}

Double click to view unformatted code.


Back to problem 52