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

This commit is contained in:
Andrii Hermaniuk 2022-03-17 21:03:15 +00:00
parent 808000c32c
commit 2d800fb0d6

View File

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