Update du1/program.c
test nechce aby som mu pisal otazky a bol interaktivny
This commit is contained in:
parent
8d98c0a427
commit
f3637c7b0b
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user