final5
This commit is contained in:
parent
7eeaee3790
commit
ea5838d250
@ -3,14 +3,19 @@
|
||||
int main(){
|
||||
double x, a, b, c, y;
|
||||
if (scanf("%lf", &x) != 1){
|
||||
printf("Nepodarilo sa načítať x");
|
||||
return 0;
|
||||
} else if (scanf("%lf", &a) != 1){
|
||||
printf("Nepodarilo sa načítať a");
|
||||
return 0;
|
||||
} else if(scanf("%lf", &b) != 1){
|
||||
printf("Nepodarilo sa načítať b");
|
||||
return 0;
|
||||
} else if(scanf("%lf", &c) != 1){
|
||||
printf("Nepodarilo sa načítať c");
|
||||
return 0;
|
||||
}
|
||||
y = x*x*a+b*x+c;
|
||||
return ("Vysledok je: %.2f", y);
|
||||
printf("%.2f/n", y);
|
||||
return y;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user