Below is my code for the pset 1, im not sure why but whenever i put negatives for the "Minutes" i get a negative "Bottles" rather than an error. Help would be appreciated.
#include <cs50.h>
#include <stdio.h>
int main(void)
{
//input
printf("Minutes: ");
if (input > 0)
{
//output = input*12
printf("Bottles: %d\n", get_int()*12;
}
else
{
printf("Number must be an integer\n");
}
}