pvjc22/du3/program.c
Yaroslav Orlianskyi e2a1e9baec ASD
2022-03-17 17:30:49 +01:00

20 lines
327 B
C

#include <stdio.h>
int main(){
int result = 0;
int value = 0;
int vxod[999];
//i`nt a = 0;
for(int i = 0; i < 4; i++){
scanf("%d",&value);;
vxod[i] = value;
//a = i;
}
//result = vxod[0];
for(int i = 1; i < 4; i++){
result = vxod[0] * result + vxod[i];
}
printf("Vysledok je: %d.00\n", result);
return 0;
}