Answer to Question #278764 in C for Venkatesh

Question #278764

Write a C program to check whether the given number is equal or not equal using if, if else

1
Expert's answer
2021-12-12T12:19:34-0500
#include <stdio.h>




int main()
{
    int number1;
	int number2;
    printf("Enter the number 1: ");
    scanf("%d", &number1);
    printf("Enter the number 2: ");
    scanf("%d", &number2);
   
    if(number1==number2)
    {
        printf("The numbers is equal.");
    }
    else
    {
        printf("The numbers is NOT equal.");
    }


	getchar();
    getchar();
    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