/*lesson 3*/
#include <iostream>
#include <iomanip> //setw 域宽 函数使用
using namespace std;
int main()
{
//6550-655 数学表达式
int X=6550, Y =655;
cout << X << " - " << Y << " = " << (X-Y) << endl;
cout << setw(11) << X << endl;
cout << setw(5) << "-" << setw(6) << Y << endl;
cout << setw(11) << "---------" << endl;
cout << setw(11) << (X-Y) << endl;
system ("pause");
return 0;
}
运行结果: