計算機概論 程式設計輸出為何? - 考試

By Andrew
at 2014-07-16T12:05
at 2014-07-16T12:05
Table of Contents
下列以 C 程式語言撰寫之程式執行後產生之輸出為何?
#include <stdio.h>
main()
{ int m1=69, m2=5;
while(m1) { m1 /=m2++; }
printf(“%d\n”, m2); }
答案為8
想請問一下各位可以解說一下是怎麼產生8的嗎?
--
#include <stdio.h>
main()
{ int m1=69, m2=5;
while(m1) { m1 /=m2++; }
printf(“%d\n”, m2); }
答案為8
想請問一下各位可以解說一下是怎麼產生8的嗎?
--
Tags:
考試
All Comments

By Carolina Franco
at 2014-07-21T01:10
at 2014-07-21T01:10

By Victoria
at 2014-07-23T22:20
at 2014-07-23T22:20

By Caroline
at 2014-07-25T12:27
at 2014-07-25T12:27

By Susan
at 2014-07-27T15:52
at 2014-07-27T15:52

By Ethan
at 2014-08-01T10:12
at 2014-08-01T10:12
Related Posts
普化 國文 生物 師資問題

By Emily
at 2014-07-16T11:33
at 2014-07-16T11:33
中國的通訊報到

By Anthony
at 2014-07-16T11:19
at 2014-07-16T11:19
計算機概論 迷宮問題(maze)

By Aaliyah
at 2014-07-16T10:43
at 2014-07-16T10:43
折舊問題

By Damian
at 2014-07-16T10:32
at 2014-07-16T10:32
高考會計後續準備方法

By Necoo
at 2014-07-16T10:15
at 2014-07-16T10:15