main.c
#include <stdio.h> #include<conio.h> void main() { int a, b; printf("Input the value of a:"); scanf("%d", &a); printf("Input the value of b:"); scanf("%d", &b); if (a != b) { printf("a is not equal to b\n"); if (a >b) {printf("a is greater than b\n");} else {printf("b is greater than a\n");} } else {printf("a is equal to b\n"); } }
code language: c fork me on onlinegdb