diff --git a/a1/program.c b/a1/program.c index b995814..a7b076e 100644 --- a/a1/program.c +++ b/a1/program.c @@ -24,6 +24,9 @@ int main() result=(int)(result*100-0.5); result=(long double)(result/100); } + else{ + result=(result+0.005); + } } printf("Vysledok je :%.2Lf\n",result); free(array);