This commit is contained in:
Yaroslav Orlianskyi 2022-03-18 12:15:53 +01:00
parent f7fd1370a1
commit 086d3eb16e

View File

@ -3,7 +3,6 @@
int main(){ int main(){
float vxod[999]; float vxod[999];
int i = 0; int i = 0;
int a = 1;
float result = 0; float result = 0;
while(1){ while(1){
float value = 0; float value = 0;
@ -17,8 +16,7 @@ int main(){
printf("Nepodarilo sa nacitat zaklad x\n"); printf("Nepodarilo sa nacitat zaklad x\n");
break; break;
}else{ }else{
for(a = 1; a < i; a++) for(int a = 1; a < i; a++)
printf("%.2f\n", vxod[a]);
result = vxod[0] * result + vxod[a]; result = vxod[0] * result + vxod[a];
printf("Vysledok je: %.2f\n", result); printf("Vysledok je: %.2f\n", result);
break; break;