// SEAT NO.
:
// ASSIGNMENT
NO. : 2 - I (USING SIMPLE IF STATEMENT)
// PROGRAM
TO CHECK TWO NUMBERS FOR EQUALITY
#include<iostream.h>
#include<conio.h>
void main()
{
int
no1, no2;
clrscr();
cout<<"\n
Please enter any two integer no. : ";
cin>>no1>>no2;
if(no1
== no2)
{
// IF CONDITION IS TRUE THEN THIS PART
IS EXECUTE
cout<<"\n\t"<<no1<<"
and "<<no2<<" are equal...!!!";
}
cout<<"\n\t
Back to main function ";
getch();
}
No comments:
Post a Comment