summaryrefslogtreecommitdiff
path: root/if.c
blob: 6dfbdc8b0d2236e1548500e160dba5cc773f0b63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <cs50.h>

int main(void)
{
int x, y;
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");
}
}