diff --git a/cv3/program.c b/cv3/program.c index 53dbedd..bee842b 100644 --- a/cv3/program.c +++ b/cv3/program.c @@ -20,18 +20,18 @@ result = (b*(x*x)) + (v*x) + c; 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 -double result = 0; -result = -return result; -} +//double result = 0; +//result = +//return result; +//} int main() { - double x=0, b=0, v=0, c=0 ; + double x = 0, b = 0, v = 0, c = 0 ; double result = 0; char input[5]; @@ -44,7 +44,7 @@ int main() { } else{ x= atof(input); - printf("prijate cislo:%.2lf\n"x) + printf("prijate cislo:%.2f\n"x) memset(input, '\0', sizeoff(input)); } @@ -56,7 +56,7 @@ int main() { } else{ b= atof(input); - printf("prijate cislo:%.2lf\n"b) + printf("prijate cislo:%.2f\n"b) memset(input, '\0', sizeoff(input)); } @@ -68,7 +68,7 @@ int main() { } else{ v= atof(input); - printf("prijate cislo:%.2lf\n"v) + printf("prijate cislo:%.2f\n"v) memset(input, '\0', sizeoff(input)); } @@ -80,7 +80,7 @@ int main() { } else{ c= atof(input); - printf("prijate cislo:%.2lf\n"c) + printf("prijate cislo:%.2f\n"c) memset(input, '\0', sizeoff(input)); } if(x!= 0){ @@ -108,7 +108,7 @@ int main() { - printf ("Vysledok je: %.2lf\n", result ); + printf ("Vysledok je: %.2f\n", result );