Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main() {
  5.  
  6. }
  7.  
  8. float unit_price(const float pack_price, const int rolls_count, const int pieces_count) {
  9. float x;
  10. x = (float) (rolls_count * pieces_count);
  11. return round((float)(pack_price / x) * 100 * 100)/100;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement