This commit is contained in:
Yaroslav Orlianskyi 2022-03-08 15:34:11 +01:00
parent 370b9220af
commit 8b7b1f1697
3 changed files with 19 additions and 0 deletions

BIN
du2/.program.c.swp Normal file

Binary file not shown.

BIN
du2/program Executable file

Binary file not shown.

19
du2/program.c Normal file
View File

@ -0,0 +1,19 @@
#include <stdio.h>
#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;
}