Fancy Mouse
- -|||
简单的格式处理。
#include<iostream>
#include
<iomanip>
using namespace std;

int main()
{
    
int a,b;
    
while(cin>>a>>b)
    
{
        cout
<<setw(7)<<a<<endl;
        cout
<<'*'<<setw(6)<<b<<endl;
        cout
<<"-------"<<endl;
        cout
<<setw(7)<<b%10*a<<endl;
        
if(b/10 > 0)
            cout
<<setw(6)<<b/10*a<<endl;
        cout
<<"-------"<<endl;
        cout
<<setw(7)<<a*b<<endl;
    }

    
return 0;
}
posted on 2005-08-27 13:20  Fancy Mouse  阅读(287)  评论(1编辑  收藏  举报