Ronan

mail@pastecode.io avatar
unknown
c_cpp
3 years ago
301 B
9
Indexable
Never
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
        char str[10];
        scanf("%s", str);
        int size = strlen(str);
        int i = -1;
        printf("%d\n", size);
        while(++i < size) {
                printf("%c", str[i]);
        }
        printf("\n");
}