Ronan

 avatar
unknown
c_cpp
4 years ago
301 B
12
Indexable
#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");
}
Editor is loading...