Изменить 'a1/program.c'
This commit is contained in:
parent
29ee493d7c
commit
8f35e46418
@ -6,10 +6,10 @@
|
||||
int main () {
|
||||
char* BMW = (char*) calloc (100, sizeof(char));
|
||||
int x;
|
||||
int counter;
|
||||
int counter = 0;
|
||||
int numbers [100];
|
||||
for (int i = 0; fgets(BMW, 100, stdin) != NULL; i++){
|
||||
if (!strcmp("\n", BMW) || !strcmp(" ", BMW)) {
|
||||
if (!strcmp("\n", BMW) || !strcmp(EOF, BMW)) {
|
||||
counter = i;
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user