Write an algorithm to check any two numbers are equal
Answers
Answered by
3
Answer:
Explanation:
1. Take the two integers as input and store it in the variables m and n respectively.
2. Using if,else statements check if m is equal to n.
3. If they are equal, then print the output as “M and N are equal”.
4. Otherwise print it as “M and N are not equal”.
/*
* C program to accept two integers and check if they are equal
*/
#include <stdio.h>
void main()
{
int m, n;
printf("Enter the values for M and N\n");
scanf("%d %d", &m, &n);
if (m == n)
printf("M and N are equal\n");
else
printf("M and N are not equal\n");
}
Answered by
1
Answer:
I am also asking for this but not found
Similar questions