1. Write a C program to accept two integers and check whether they are equal or not.
Answers
Answered by
8
Answer:
CODE:
#include <stdio.h>
int main(void) {
int num1;
int num2;
printf("Enter number 1: ");
scanf("%d", &num1);
printf("Enter number 2: ");
scanf("%d", &num2);
if(num1 == num2){
printf("The two numbers are equal! ");
} else {
printf("The two NOT numbers are equal! ");
}
}
OUTPUT:
Enter number 1: 1
Enter number 2: 1
The two numbers are equal!
Attachments:
Answered by
0
Explanation:
number1 and number2 are equal=15
Similar questions