利用巢狀迴圈, 將符號*整齊排列成如下之梯形:

(上底5顆* , 下底9顆* , 高3顆*)- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- for(______________)
- {
- for(______________)
- {
- cout<<" ";
- }
- for(______________)
- {
- cout<<"*";
- }
- cout<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼本帖隱藏的內容需要回復才可以瀏覽 |