請使用for迴圈製作以下圖形
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- for(____________)
- {
- for(____________)
- cout<<" ";
- for(____________)
- cout<<"*";
- for(____________)
- cout<<" ";
- for(____________)
- cout<<"*";
- cout<<endl;
- }
- for(____________)
- {
- for(____________)
- cout<<" ";
- for(____________)
- cout<<"*";
- for(____________)
- cout<<" ";
- for(____________)
- cout<<"*";
- cout<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼本帖隱藏的內容需要回復才可以瀏覽 |