標題:
[隨堂測驗] 數青蛙
[打印本頁]
作者:
鄭又綸
時間:
3 天前 20:36
標題:
[隨堂測驗] 數青蛙
利用巢狀迴圈,完成如下之畫面:
#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;
}
複製代碼
本帖隱藏的內容需要回復才可以瀏覽
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://seed.istak.org.tw/)
Powered by Discuz! 7.2