c++加法竖式(原创)
程序代码:
#include <iostream> #include<iomanip> using namespace std; int main() { int a, b; cin >> a >> b; system("cls"); std::cout << setw(12)<<a<<"\n"; cout << setw(2 )<< "+" << setw(10) << b<<endl; cout << "---------\n"; cout << setw(12) << a + b; while (true) { ; } return 0; }