Aktualizovat du5/program.c

This commit is contained in:
Tomáš Vlček 2026-04-13 21:40:15 +00:00
parent 4646ffa9d1
commit 8ec9a0aee4

View File

@ -8,9 +8,8 @@ int main()
char line[SIZE];
char answer[SIZE];
while (1)
while (fgets(line, SIZE, stdin) != NULL)
{
char* p = fgets(line, SIZE, stdin);
if (line[0] == NULL)
{
break;