locale-test/05_1.cpp

20 lines
206 B
C++
Raw Normal View History

2024-08-23 14:09:20 +08:00
#include<iostream.h>
int main()
{
int i,j,k;
for(i=1;i<=6;i++)
{
for(j=1;j<=(6-i)*2;j++)
{
cout<<' ';
}
cout;
for(k=i;k>0;k--)
cout<<k<<' ';
cout<<'\n';
}
return 0;
}