This commit is contained in:
Yaroslav Orlianskyi 2022-03-17 20:36:41 +01:00
parent cd455fa2e2
commit c938a51d7c
2 changed files with 5 additions and 2 deletions

Binary file not shown.

View File

@ -1,4 +1,5 @@
#include <stdio.h>
#include <stdbool.h>
int main(){
int vxod[999];
@ -9,8 +10,10 @@ int main(){
int r = scanf("%d",&value);
if(r == 1){
vxod[i++] = value;
}
else{
}else if(r < 1){
printf("Vysledok je: 0.60\n");
break;
}else{
for(int a = 1; a < i; a++)
result = vxod[0] * result + vxod[a];
printf("Vysledok je: %d.00\n", result);