water.c

Here is the reference solution for Problem Set 1, water.c

#include <cs50.h>
#include <stdio.h>

int main(void) {
    printf("minutes: ");
    int num_minutes = GetInt();
    int num_bottles = 12 * num_minutes;
    printf("bottles: %d\n", num_bottles);
}
Comments