main.cpp

来自「this a good book.」· C++ 代码 · 共 19 行

CPP
19
字号
#include<iostream.h>
#include<iomanip.h>
void main()
{
	int i,j,k;
	for(i=1;i<=6;i++)
	{
/************found**********/
		for(j=1;j<=20+3*i;j++)
			cout << " ";
/************found**********/
		for(k=1;k>=i;k++)
			cout << setw(3) << k;
/************found**********/
		for(k=i+1;k>0;k++)
			cout << setw(3) << k;
		cout << endl;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?