add l10.c
This commit is contained in:
parent
df0149d828
commit
1ee49b6e78
1 changed files with 16 additions and 0 deletions
16
c/l10.c
Normal file
16
c/l10.c
Normal 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]);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue