  
|
小星星5
利用巢狀迴圈, 將符號*整齊排列成如下之三角形:
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- for(_____________)
- {
- for(_____________)
- {
- cout<<" ";
- }
- for(_____________)
- {
- cout<<"*";
- }
- cout<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊
|