From 5a57e2edca2b2f4a6080d81c2f6fb6f87663c17b Mon Sep 17 00:00:00 2001 From: Weber Date: Thu, 28 Mar 2024 17:55:23 +0000 Subject: [PATCH] test --- a1/program.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index 4169d13..531c295 100644 --- a/a1/program.c +++ b/a1/program.c @@ -1,6 +1,7 @@ #include #include #include +#include #define MAX_LINE_LENGTH 100 @@ -8,6 +9,11 @@ int main() { char uloha[MAX_LINE_LENGTH]; while (fgets(uloha, MAX_LINE_LENGTH, stdin) != NULL) { + if (strlen(uloha) <= 1) { + printf("OK\n"); + continue; + } + int cislo1, cislo2, vysledok_zadany; char operacia; @@ -48,4 +54,4 @@ int main() { } return 0; -} +} \ No newline at end of file