國立屏東商業技術學院 資訊工程系 程式設計(一)
trunin code c.hw3
due date: TBA
[9:19 user@ws hw3] ./a.out Please input year in AD: 2013 2013 AD is ROC 102. [9:19 user@ws hw3] ./a.out Please input year in AD: 1911 1911 AD is ROC 0. [9:19 user@ws hw3] ./a.out Please input year in AD: 2050 2050 AD is ROC 139. [9:19 user@ws hw3]
[9:19 user@ws hw3] ./a.out The value of RAND_MAX is XXXXXXXXXX. [9:19 user@ws hw3]其中xxxxxxxxxx為該數值。
[9:19 user@ws hw3] ./a.out Throwing the dice.... 6! [9:19 user@ws hw3] ./a.out Throwing the dice.... 1! [9:19 user@ws hw3] ./a.out Throwing the dice.... 2! [9:19 user@ws hw3]
[9:19 user@ws hw3] ./a.out Throwing two dice ... One dice shows 2 and the other dice shows 6. The total score is 2 + 6 = 8. [9:19 user@ws hw3] ./a.out Throwing two dice ... One dice shows 3 and the other dice shows 4. The total score is 3 + 4 = 7. [9:19 user@ws hw3]
[9:19 user@ws hw3] ./a.out Please input the width: 5 Please input the height: 6 The area is 5 x 6 = 30. [9:19 user@ws hw3] ./a.out Please input the width: 10 Please input the height: 12 The area is 5 x 6 = 120. [9:19 user@ws hw3]