• Follow Us

C Program to Accept two Integers and Check if they are Equal

Let’s have a look at C Program to Accept two Integers and Check if they are Equal.

Check if two integers are Equal or not in C Programming Language

#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”);
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Shopping cart