#include
using namespace std;
int main(){
int a,b;
int i = 1;
cout<<"Please Input a, b"< cin>>a>>b; cout<<"*************************"< if(a!=b) { cout<<"b != a"< cout<<"b = "<
} else { cout <<"b = a"< cout <<"Drop b"< } cout<<"*************************"< cout<<"If you want to enter another b ?"< cout<<"1 for yes | 0 for no"< cin>>i; while(i) { cout<<"Please Input b"< cin>>b; cout<<"*************************"< if(a!=b) { cout<<"b != a"< cout<<"b = "<
} else { cout <<"b = a"< cout <<"Drop b"< } cout<<"*************************"< cout<<"If you want to enter another b ?"< cout<<"1 for yes | 0 for no"< cin>>i; } return 0; }不太清楚你是否想要这样的效果。纯手打,望采纳!~
#include
using namespace std;
int main()
{
int a,b;
cout<<"Please enter two numbers:\n";
cin>>a>>b;
if(a==b)
{
cout< }
else
cout<system ("pause");
return 0;
}
#include
using namespace std;
int main()
{
int a,b;
cout<<""<
if(a!=b)
{
cout< }
else
a=b=0;
return 0;
}