Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main() {
- }
- float unit_price(const float pack_price, const int rolls_count, const int pieces_count) {
- float x;
- x = (float) (rolls_count * pieces_count);
- return round((float)(pack_price / x) * 100 * 100)/100;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement