my/c/l10.c

16 lines
295 B
C
Raw Normal View History

2026-06-26 00:33:10 +03:00
#include <stdio.h>
#include <string.h>
int main() {
char str[100];
printf("Enter phrase ");
scanf("%s", str);
int len = strlen(str);
if(len > 50) {
printf("too long");
return 0;
}
for(int i = 0; i < len; i++) {
printf("%c\n", str[i]);
}
}