Files
CS50---Harvard/src1/compare0.c
T
2026-05-28 10:16:10 +00:00

18 lines
306 B
C

// Conditional, Boolean expression, relational operator
#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");
}
}