This commit is contained in:
Macko 2024-03-07 22:02:31 +01:00
parent 7c6a7075b0
commit b524557c3e

View File

@ -20,12 +20,12 @@ result = (b*(x*x)) + (v*x) + c;
return result; return result;
} }
double vratenie2 (double x, double b, double v, double c,) { //double vratenie2 (double x, double b, double v, double c,) {
//2x2+x+1 //2x2+x+1
double result = 0; //double result = 0;
result = //result =
return result; //return result;
} //}
@ -44,7 +44,7 @@ int main() {
} else{ } else{
x= atof(input); x= atof(input);
printf("prijate cislo:%.2lf\n"x) printf("prijate cislo:%.2f\n"x)
memset(input, '\0', sizeoff(input)); memset(input, '\0', sizeoff(input));
} }
@ -56,7 +56,7 @@ int main() {
} else{ } else{
b= atof(input); b= atof(input);
printf("prijate cislo:%.2lf\n"b) printf("prijate cislo:%.2f\n"b)
memset(input, '\0', sizeoff(input)); memset(input, '\0', sizeoff(input));
} }
@ -68,7 +68,7 @@ int main() {
} else{ } else{
v= atof(input); v= atof(input);
printf("prijate cislo:%.2lf\n"v) printf("prijate cislo:%.2f\n"v)
memset(input, '\0', sizeoff(input)); memset(input, '\0', sizeoff(input));
} }
@ -80,7 +80,7 @@ int main() {
} else{ } else{
c= atof(input); c= atof(input);
printf("prijate cislo:%.2lf\n"c) printf("prijate cislo:%.2f\n"c)
memset(input, '\0', sizeoff(input)); memset(input, '\0', sizeoff(input));
} }
if(x!= 0){ if(x!= 0){
@ -108,7 +108,7 @@ int main() {
printf ("Vysledok je: %.2lf\n", result ); printf ("Vysledok je: %.2f\n", result );