Thursday, June 3, 2021

simple program check two numbers are equal or not (POP) (97)

 #include<iostream>

using namespace std;

int main()

{

int num1,num2;

cout<<"enter the first number:"<<endl;

cin>>num1;

cout<<"enter the second number:"<<endl;

cin>>num2;

if(num1==num2)

{

cout<<"these two numbers are equal";

}

else

{

cout<<"these two numbers are not equal";

}

return 0;

}

No comments:

Post a Comment