题目描述
1. 下面这段程序的功能是输出右下图所示直角三角形,请补充缺失的语句,使程序完整。
```CPP
#include
using namespace std;
int main() {
int i,j;
for(i=1;__①__;i++){
for(j=1;__②__;j++) {
cout << "*";
}
cout << endl;
}
return 0;
}
```
输出效果↓
```
*****
****
***
**
*
```
答案不唯一,需按照老师要求写
2. 阅读程序写结果:
```cpp
#include
using namespace std;
int main (){
int i,j;
for(i=1;i <= 3;i++){
for(j=1;j <= 5;j++) {
cout << j;
}
cout << endl;
}
return 0;
}
```
输出:___________(如有多行答案请自行复制黏贴输出)