Изменил(а) на 'a1/program.c'

This commit is contained in:
Vladyslav Korzun 2023-03-23 18:24:10 +00:00
parent 65edf7d47a
commit 7e5c02ceb3

View File

@ -18,13 +18,24 @@ int main() {
int counter = 0;
int che = 0;
int count = 0;
int toc = 0;
while ((r = fgets(znaky, LINE_SIZE, stdin)) != NULL) {
if (feof(stdin)) {
break;
}
if(znaky[0] == '\n'){
break;
}
}
for(int i = 0; i < 10; i++){
if(znaky[i] == '.'){
toc++;
}
}
//printf("-->%d\n", toc);
if(toc != 2){
che = 1;
toc = 0;
}
zaciatok_cisla = znaky;
counter = 0;
while (*zaciatok_cisla != '\0') {