diff --git a/du2/.program.c.swp b/du2/.program.c.swp new file mode 100644 index 0000000..c8c7e68 Binary files /dev/null and b/du2/.program.c.swp differ diff --git a/du2/program b/du2/program new file mode 100755 index 0000000..b366fc7 Binary files /dev/null and b/du2/program differ diff --git a/du2/program.c b/du2/program.c new file mode 100644 index 0000000..7ebca92 --- /dev/null +++ b/du2/program.c @@ -0,0 +1,19 @@ +#include +#define VELKOST_POLA 52 + +int main(){ + int results[50]; + int max; + int vysledky[VELKOST_POLA] = {0,0,0,0}; + int i = 0; + printf("1 2 3 4 5"); + while(1){ + scanf("%d", results[i]); + if(results[i] == 1) + printf("Úspešne som načítal hodnotu %d\n",results[i]); + else + printf("Načítanie sa nepodarilo. V premennej value ostala pôvodná hodnota. \n"); + i++; + } + return 0; +}