I newbe in programming. When I run the Check50, error message is :) rejects "foo" minutes, :) rejects "" minutes, :) rejects "123abc" minutes. Please, can you tell me what it means so that I can work on my errors ? On the website, I found someone else having this trouble that resoluted by himself, so I added the if/else, but still have the same error message. Here's my code :
#include <cs50.h>
#include <stdio.h>
int main (void) { int bottle = 12;
#include <cs50.h>
#include <stdio.h>
int main (void)
{
int bottle = 12;
printf("Minute : ");
int Minute = get_int();
if (Minute > 0)
{
printf("Bottles : %i\n", Minute * bottle);
}
else
{
printf("Error \n");
}
}
}