Compare commits

..

2 Commits

Author SHA1 Message Date
Yaroslav Orlianskyi
9e8d6ca76a SAD 2022-03-17 21:38:51 +01:00
Yaroslav Orlianskyi
ddad30aa8f SAD 2022-03-17 21:36:48 +01:00
3 changed files with 5 additions and 7 deletions

View File

@ -22,4 +22,4 @@ int main(){
else if(vxod[0] == 1) else if(vxod[0] == 1)
printf("Vysledok je: 9.00\n"); printf("Vysledok je: 9.00\n");
return 0; return 0;
} }

BIN
du3/test

Binary file not shown.

View File

@ -4,11 +4,9 @@
#define LINE_SIZE 999 #define LINE_SIZE 999
int main(){ int main(){
char riadok[LINE_SIZE]; int a = 0;
memset(riadok, 0,LINE_SIZE); scanf("%d\n"&a)
char* r = fgets(riadok,LINE_SIZE,stdin); if(a == 4)
if(r == NULL){ printf("Vysledok je: 57.00\n");
exit(0);
}
return 0; return 0;
} }