add l10.c

This commit is contained in:
Stepan 2026-05-08 22:45:58 +03:00
parent df0149d828
commit 1ee49b6e78

16
c/l10.c Normal file
View file

@ -0,0 +1,16 @@
#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]);
}
}