Answer to Question #308221 in C for ahmed

Question #308221

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.


1
Expert's answer
2022-03-11T07:23:22-0500
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS