Write a program that print the relation between two integer number if those numbers are equal, not equal and which one contain the higher value.
#include <stdio.h>
int main()
{
int a, b;
printf("Enter the first integer: ");
scanf("%d", &a);
printf("Enter the second integer: ");
scanf("%d", &b);
if (a == b){
printf("Equal\n");
}else {
printf("Not equal\n");
}
if (a > b){
printf("The first number is higher value");
}else{
printf("The second number is higher value");
}
scanf("%d", &b);
return 0;
}
Comments
Leave a comment