close
int main()
{
int a,b;
do
{
for (b=1;b<=5;b++)
{
for (a=1;a<=b;a++)
{
cout <<b;
cout <<'\0';
}
cout<<'\n';
}
cout <<'\n';
}while(a<6);
return 0;
}
全站熱搜
int main()
{
int a,b;
do
{
for (b=1;b<=5;b++)
{
for (a=1;a<=b;a++)
{
cout <<b;
cout <<'\0';
}
cout<<'\n';
}
cout <<'\n';
}while(a<6);
return 0;
}
留言列表