Last active
August 15, 2016 13:33
-
-
Save tanham/0f614de419354df1afd946c57d480fe4 to your computer and use it in GitHub Desktop.
cs50x pset1 - water - prompts user to type in how many minutes spent in shower and outputs the number of 16oz water bottles that shower uses
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 <stdio.h> | |
#include <cs50.h> | |
int main(void) | |
{ | |
printf("minutes:"); | |
int x = GetInt(); | |
printf("bottles: %d \n", x * 12); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment