diff --git a/cv2/.prigram.c.swp b/cv2/.prigram.c.swp new file mode 100644 index 0000000..a37279a Binary files /dev/null and b/cv2/.prigram.c.swp differ diff --git a/cv2/program.c b/cv2/program.c new file mode 100644 index 0000000..94213d4 --- /dev/null +++ b/cv2/program.c @@ -0,0 +1,18 @@ +#include + +#define FIELD_SIZE 52 + +int main(){ + int field[FIELD_SIZE] = {0,0,0,0}; + int count = 0; + int highest = 0; + + 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"); + } +}