pvjc22/du3/program.c
Yaroslav Orlianskyi 700f5f8bd0 SAD
2022-03-17 18:53:14 +01:00

22 lines
360 B
C

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