SD
This commit is contained in:
parent
cd455fa2e2
commit
c938a51d7c
BIN
du3/program
BIN
du3/program
Binary file not shown.
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user