Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
improved formmating
Source Link
MARS
  • 5.2k
  • 3
  • 14
  • 23

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");
    }
}

}

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;

printf("Minute : ");
int Minute = get_int();

if (Minute > 0)
{
    printf("Bottles : %i\n", Minute * bottle);
}

else  
{
    printf("Error \n");
}

}

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;
    
    printf("Minute : ");
    int Minute = get_int();
    
    if (Minute > 0)
    {
        printf("Bottles : %i\n", Minute * bottle);
    }
    
    else  
    {
        printf("Error \n");
    }
}
Source Link
Genevie
  • 30
  • 1
  • 12

Water homework week 1

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;

printf("Minute : ");
int Minute = get_int();

if (Minute > 0)
{
    printf("Bottles : %i\n", Minute * bottle);
}

else  
{
    printf("Error \n");
}

}