using namespace std;
int main()
{
int a, b, sum;
cin >> a >> b;
sum = a + b;
cout << "a+b=" << sum << endl;
cout<<" "<<a << endl;
cout<< "+" << endl;
cout<< " " << b << endl;
cout<< "---------" << endl;
cout<< " " << sum << endl;
return 0;
}
请问这样写为什么不对?
全部评论
(2) 回帖