Изменил(а) на 'du3/program.c'
This commit is contained in:
parent
57256ab102
commit
bf0e5f2143
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user