Advertisement
venom049

water

Dec 13th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <cs50.h>
  2. #include <stdio.h>
  3.  
  4. int main(void)
  5. {
  6.     printf("Minutes in shower= "); //count of minutes
  7.     int minutes = get_int();
  8.  
  9.     while (minutes >= 0)
  10.     {
  11.         printf("It’s equvalent to %i bottles of water\n", minutes * 12); //count of bottles
  12.         break;
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement