-moz-user-select:none; -webkit-user-select:none; -khtml-user-select:none; -ms-user-select:none; user-select:none;

Tuesday 17 March 2015

Program to determine whether two numbers are equal or not

In this program,I will tell you how to input two numbers from the user and then determine whether they are equal or not?

Source code


#include<iostream.h>
#include<conio.h>
void main( )
{
int m,n;
cout<<"Enter the first number=";
cin>>m;
cout<<"Enter the second number=";
cin>>n;
if(m==n)
cout<<"The numbers are equal.";
else
cout<<"The numbers are not equal.";
getch( );
}

Output

No comments:

Post a Comment