Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cs50.h>
- #include <stdio.h>
- int main(void)
- {
- printf("Minutes in shower= "); //count of minutes
- int minutes = get_int();
- while (minutes >= 0)
- {
- printf("Itβs equvalent to %i bottles of water\n", minutes * 12); //count of bottles
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement