From a582fff238e7ae721776860c7ce0ab35b3db8658 Mon Sep 17 00:00:00 2001 From: Vladyslav Korzun Date: Wed, 8 Mar 2023 13:10:09 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'du4/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du4/program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/du4/program.c b/du4/program.c index 8d100bc..f9cc03a 100644 --- a/du4/program.c +++ b/du4/program.c @@ -20,6 +20,7 @@ int main() { float c = 0; int counter = 0; float sr= 0; + int p = 0; while ((r = fgets(znaky, LINE_SIZE, stdin)) != NULL) { if(znaky[0] == '\n'){ break; @@ -58,8 +59,6 @@ int main() { zaciatok_cisla = koniec_cisla + 1; } } - } - int p = 0; for(int j = 0; j < sym; j++){ if(symbol[j] == '=') p = j; @@ -86,6 +85,7 @@ int main() { else{ printf("ZLE\n"); } + } if (feof(stdin)) { //printf("Dostal som sa na koniec suboru\n"); }