Happy About the progress
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// Conditionals
|
||||
|
||||
#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 if (x > y)
|
||||
{
|
||||
printf("x is greater than y\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("x is equal to y\n");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user