题目是写出来的program 要显示
Please enter an integer: 5
1
22
333
4444
55555
写什么号码就要排列出来,不好意思哦。。我是新手,非常期望变强的那一天。。em0012
以下是我写的code,帮我看看吧。。
#include <iostream>
using namespace std;
int main ()
{
int i, j, k;
cout << "
lease enter an integer : ";cin >> i;
j = 1;
k = 1;
while (k <= i)
{
while (j <= k)
{
cout << k;
j = j + 1;
}
cout << endl;
k = k + 1;
}
system("
AUSE");return 0;
}




