Update du1/program.c

test nechce aby som mu pisal otazky a bol interaktivny
This commit is contained in:
Kamil Gejdoš 2026-03-05 12:47:18 +00:00
parent 8d98c0a427
commit f3637c7b0b

View File

@ -25,8 +25,6 @@ int vyhodnot_vstup (float *num){
int main(){ int main(){
float num = 0; float num = 0;
printf ("Pre ake x sa ma ratat horner?");
//prepis vstupu do premennej //prepis vstupu do premennej
int vyhodnotenie = vyhodnot_vstup(&num); int vyhodnotenie = vyhodnot_vstup(&num);
@ -52,7 +50,6 @@ int main(){
int idx = 0; int idx = 0;
while (1) { while (1) {
int vyhodnotenie = vyhodnot_vstup(&koeficient[idx]); int vyhodnotenie = vyhodnot_vstup(&koeficient[idx]);
if (vyhodnotenie == -2) { if (vyhodnotenie == -2) {
break; break;
@ -67,7 +64,6 @@ int main(){
} else { } else {
idx++; idx++;
} }
} }
if (idx == 0) { if (idx == 0) {