diff --git a/a1/program.c b/a1/program.c index b03d3d0..104c162 100644 --- a/a1/program.c +++ b/a1/program.c @@ -4,7 +4,7 @@ int main() { double x=0; - double value =0; + long double value =0; int count =0; double arr[50]={0}; scanf("%lf",&x); @@ -23,7 +23,7 @@ int main() if(value>=40000&&value<=1000000){ value =((int)(value*100 - 0.5)/100.00); } - printf("Vysledok je :%.2lf\n",value); + printf("Vysledok je :%.2Lf\n",value); return 0;