討論串[理工] [程式] C語言
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者jameschou (DOG)時間15年前 (2011/02/09 16:06), 編輯資訊
0
0
0
內容預覽:
題目是要改成用while跟用for來寫吧. while的:. total=0;. cin>>grade;. while(grade!=-1){. total+=grade;. cin>>grade;. }. =======================================. for的:
(還有35個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者doggingg (doggingg)時間15年前 (2011/02/09 14:18), 編輯資訊
0
0
0
內容預覽:
Please rewrite the code segment shown below in a "while" statement. and a "for" statement in C++:. total=0;. do{. cin>>grade;. if(grade!=-1). total+=g
首頁
上一頁
1
下一頁
尾頁