3 喜歡 0 不喜歡
88 瀏覽
Write a program that declares an array of 5 elements and uses a loop to assign the values 1.1, 1.2, 1.3, 1.4, and 1.5 to them. Next, the program should display the array's elements in reverse order.

Input:

1.1 1.2 1.3 1.4 1.5

Output:

1.5 1.4 1.3 1.2 1.1

 

References: C From Theory
[正常] Coding (C) - 最新提問 分類:Introduction to Computer Programming I (C) | 用戶: (20.9k 分)
ID: 21876 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 88 瀏覽
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.6.153
©2016-2024

相關問題

3 喜歡 0 不喜歡
0 回答
[正常] 對錯二選一 - 最新提問 2月 11, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21918 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 111 瀏覽
2 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 8, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21879 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 91 瀏覽
2 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 8, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21877 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 106 瀏覽
3 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 2月 8, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21875 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 117 瀏覽
3 喜歡 0 不喜歡
0 回答
[正常] Coding (C) - 最新提問 2月 8, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21874 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 92 瀏覽
12,783 問題
183,443 回答
172,219 留言
4,824 用戶