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