-
-
Save sameekapdi/047e870b653188f86787cd33aa98aa40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cs50.h> | |
#include <stdio.h> | |
int main(void) | |
{ | |
int mins; | |
do | |
{ | |
printf("Minutes: "); | |
mins = get_int(); | |
} while(mins <= 0); | |
mins *= 12; | |
printf("Bottles: %i\n", mins); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment