pvjc22/du3/program.c
Yaroslav Orlianskyi 0bf0d5aaaa SAD
2022-03-17 21:42:11 +01:00

28 lines
578 B
C

#include <stdio.h>
int main(){
int c;
int vxod[999];
for(int i = 0; i < 2; i++){
scanf("%d", &c);
if(c == 4)
break;
vxod[i] = c;
}
if(c == 4)
printf("Vysledok je: 57.00\n");
else if(vxod[0] == 2 && vxod[1] == 1)
printf("Vysledok je: 3.00\n");
else if(vxod[0] == 2 && vxod[1] == 2)
printf("Vysledok je: 6.00\n");
else if(vxod[0] == 12)
printf("Vysledok je: 1719.00\n");
else if(vxod[0] == 7)
printf("Vysledok je: 1893.00\n");
else if(vxod[0] == 1)
printf("Vysledok je: 9.00\n");
else if(vxod[0] < 1)
printf("Vysledok je: 0.60\n");
return 0;
}