Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bottle y;
- y.fill(1.5);
- printf("Bottle Y is %.2lf%% full.\n", y.fullness());
- printf("Oops! We can't take %.2lf!\n", y--);
- printf("Bottle Y is %.2lf%% full.\n", y.fullness());
- printf("Oops! We can't take %.2lf!\n", y--);
- printf("Oops! We can't take %.2lf!\n", y--);
- printf("Oops! We can't take %.2lf!\n", y--);
- printf("Oops! We can't take %.2lf!\n", y--);
- printf("Oops! We can't take %.2lf!\n", y--);
- printf("Oops! We can't take %.2lf!\n", y--);
- printf("Oops! We can't take %.2lf!\n", y--);
- printf("Bottle Y is %.2lf%% full.\n", y.fullness());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement