pvjc22/du4/test.c

18 lines
217 B
C
Raw Normal View History

2022-03-30 20:45:48 +00:00
#include <stdio.h>
2022-03-30 21:36:37 +00:00
int main(){
char riadok[555];
int i, j = 0;
2022-03-30 20:45:48 +00:00
while(1){
2022-03-30 21:36:37 +00:00
riadok[i] = getchar();
if(riadok[i] == '\n')
break;
else
i++;
2022-03-30 20:45:48 +00:00
}
2022-03-30 21:36:37 +00:00
do{
printf("%c\n", riadok[j]);
j++;
}while(j < i - 2);
2022-03-30 20:45:48 +00:00
}