summaryrefslogtreecommitdiff
path: root/if.c
blob: ce09569139645f05d1a4bb7fccc77bfc4722130a (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 if (x == y) {
    printf("x is equal to y\n");
}
}