Aktualizovat du1/program.c
This commit is contained in:
parent
760355d358
commit
b91debbf50
@ -53,7 +53,7 @@ int main() {
|
|||||||
searched_positions[strcspn(searched_positions, "\n")] = '\0';
|
searched_positions[strcspn(searched_positions, "\n")] = '\0';
|
||||||
|
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
if (!fgets(dname, MAX_LINE, stdin)) break;
|
if (!fgets(dname, MAX_LINE, stdin)) break;
|
||||||
dname[strcspn(dname, "\n")] = '\0';
|
dname[strcspn(dname, "\n")] = '\0';
|
||||||
if (scanf("%lf\n", &pr) != 1) {
|
if (scanf("%lf\n", &pr) != 1) {
|
||||||
@ -66,6 +66,6 @@ int main() {
|
|||||||
a++;
|
a++;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\n Nacitanych %d poloziek.\n", a);
|
printf("Nacitanych %d poloziek.\n", a);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user