Изменил(а) на 'du3/program.c'

This commit is contained in:
Andrii Hermaniuk 2022-03-17 21:08:22 +00:00
parent 57256ab102
commit bf0e5f2143

View File

@ -43,9 +43,11 @@ int main(){
num+=p*n;
}
float num2=(round(num*100))/100;
num*=100;
num=round(num);
num/=100;
printf("Vysledok je: %.2f\n", num2);
printf("Vysledok je: %.2f\n", num);
return EXIT_SUCCESS;
}