Happy About the progress
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user