3 喜歡 0 不喜歡
106 瀏覽
Write a program that reads two positive float numbers and displays the sum of their integer and decimal parts. Use only two float variables.

Sample Input1:

1.23  9.55

Sample Output1:

10

0.78

Sample Input2:

2.23  10.79

Sample Output2:

13

0.02

 

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

相關問題

2 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 1月 18, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21762 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 198 瀏覽
3 喜歡 0 不喜歡
0 回答
[正常] Coding (C) - 最新提問 1月 25, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21793 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 81 瀏覽
5 喜歡 0 不喜歡
0 回答
[正常] Coding (C) - 最新提問 10月 10, 2017 分類:Introduction to Computer Programming I (C) | 用戶: thopd (12.1k 分)
ID: 25996 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 167 瀏覽
5 喜歡 0 不喜歡
3 回答
[正常] Coding (C) - 最新提問 10月 10, 2017 分類:Introduction to Computer Programming I (C) | 用戶: admin (9.9k 分)
ID: 25955 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 186 瀏覽
2 喜歡 0 不喜歡
0 回答
[正常] 開放式問答 - 最新提問 1月 18, 2017 分類:Introduction to Computer Programming I (C) | 用戶: The Contributor (20.9k 分)
ID: 21765 - 從幾時開始: 無限制 - 到幾時結束: 無限制
| 204 瀏覽
12,783 問題
183,443 回答
172,219 留言
4,824 用戶