ProAnswers.org

Write a C program to check equivalence of two numbers?

 #include<stdio.h>

#include<conio.h>

void main()

{

int m,n;

clrscr();

printf(“Enter two numbers:”);

scanf(“%d%d”, &m, &n);

if(m-n= =0)

printf(“\n Two numbers are equal”);

getche();

}

Output:

Enter two numbers: 5 5

Two numbers are equal