using namespace std;
main(){
int num1, num2;
cout<<"Please enter the first number"<<endl;
cin>>num1;
cout<<"Please enter the second number"<<endl;
cin>>num2;
if(num1==num2){
cout<<"first number is equal to second number";
}
else{
cout<<"first number is not equal to second numbet";
}
system("pause");
}
Output:
Please enter the first number
3
Please enter the second number
3
first number is equal to second number
No comments:
Post a Comment