利用巢狀迴圈, 完成如下之畫面
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- for(__________________)
- {
- cout<<i<<"隻青蛙"<<i<<"張嘴, "<<i*2<<"個眼睛"<<i*4<<"條腿, ";
- for(__________________)
- {
- cout<<"__________________";
- }
- cout<<"__________________"<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |