Advertisement
Guest User

Untitled

a guest
May 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Bottle y;
  2. y.fill(1.5);
  3. printf("Bottle Y is %.2lf%% full.\n", y.fullness());
  4. printf("Oops! We can't take %.2lf!\n", y--);
  5. printf("Bottle Y is %.2lf%% full.\n", y.fullness());
  6. printf("Oops! We can't take %.2lf!\n", y--);
  7. printf("Oops! We can't take %.2lf!\n", y--);
  8. printf("Oops! We can't take %.2lf!\n", y--);
  9. printf("Oops! We can't take %.2lf!\n", y--);
  10. printf("Oops! We can't take %.2lf!\n", y--);
  11. printf("Oops! We can't take %.2lf!\n", y--);
  12. printf("Oops! We can't take %.2lf!\n", y--);
  13. printf("Bottle Y is %.2lf%% full.\n", y.fullness());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement