第三题

来源:互联网 发布:生活用品 淘宝店 编辑:程序博客网 时间:2024/04/30 04:46
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
 for(int n=1;n<8;n++)
 cout<<setw(20-n)<<setfill(' ')<<" "        //nm
<<setw(2*n-1)<<setfill('B')<<"B"<<endl;
 return 0;
}
0 0
原创粉丝点击