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 <stdio.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
int vxod[999];
|
int vxod[999];
|
||||||
@ -9,8 +10,10 @@ int main(){
|
|||||||
int r = scanf("%d",&value);
|
int r = scanf("%d",&value);
|
||||||
if(r == 1){
|
if(r == 1){
|
||||||
vxod[i++] = value;
|
vxod[i++] = value;
|
||||||
}
|
}else if(r < 1){
|
||||||
else{
|
printf("Vysledok je: 0.60\n");
|
||||||
|
break;
|
||||||
|
}else{
|
||||||
for(int a = 1; a < i; a++)
|
for(int a = 1; a < i; a++)
|
||||||
result = vxod[0] * result + vxod[a];
|
result = vxod[0] * result + vxod[a];
|
||||||
printf("Vysledok je: %d.00\n", result);
|
printf("Vysledok je: %d.00\n", result);
|
||||||
|
Loading…
Reference in New Issue
Block a user