22 lines
357 B
C
22 lines
357 B
C
// Conditionals that are mutually exclusive
|
|
|
|
#include <cs50.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
// Prompt user for integers
|
|
int x = get_int("What's x? ");
|
|
int y = get_int("What's y? ");
|
|
|
|
// Compare integers
|
|
if (x < y)
|
|
{
|
|
printf("x is less than y\n");
|
|
}
|
|
else
|
|
{
|
|
printf("x is not less than y\n");
|
|
}
|
|
}
|