From 550df22a594991af8f0af4af598619a807e007c4 Mon Sep 17 00:00:00 2001 From: Peter Sabol Date: Wed, 9 Mar 2022 07:57:33 +0000 Subject: [PATCH] Update 'du2/program.c' --- du2/program.c | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/du2/program.c b/du2/program.c index a0b6d48..0da6dad 100644 --- a/du2/program.c +++ b/du2/program.c @@ -1,6 +1,21 @@ -#include -#include - -int main{ - return 0; +#include +#include +#define VELKOST_POLA 52 + +int main{ + //int i=1; + int value = 0; + int r = scanf("%d",&value); + if (r > 1){ + printf("Úspešne som načítal hodnotu %d\n",value); + } + else { + printf("Načítanie sa nepodarilo. V premennej value ostala pôvodná hodnota. \n"); + return + } + // int pole[VELKOST_POLA]; + //int vysledky[VELKOST_POLA] + //memset(pole,0,VELKOST_POLA * sizeof(int)); + for() + return 0; } \ No newline at end of file