This commit is contained in:
Illia Korpan 2026-03-04 13:53:36 +01:00
parent 7eeaee3790
commit ea5838d250

View File

@ -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;
}