ASD
This commit is contained in:
parent
370b9220af
commit
8b7b1f1697
BIN
du2/.program.c.swp
Normal file
BIN
du2/.program.c.swp
Normal file
Binary file not shown.
BIN
du2/program
Executable file
BIN
du2/program
Executable file
Binary file not shown.
19
du2/program.c
Normal file
19
du2/program.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user