3 like 0 dislike
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
[Normal] Coding (C) - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21795 - Available when: Unlimited - Due to: Unlimited
| 38 views
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:162.158.63.13
©2016-2021

Related questions

2 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21762 - Available when: Unlimited - Due to: Unlimited
| 83 views
3 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 25, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21793 - Available when: Unlimited - Due to: Unlimited
| 48 views
5 like 0 dislike
0 answers
[Normal] Coding (C) - asked Oct 10, 2017 in Introduction to Computer Programming I (C) by thopd (12.1k points)
ID: 25996 - Available when: Unlimited - Due to: Unlimited
| 81 views
5 like 0 dislike
3 answers
[Normal] Coding (C) - asked Oct 10, 2017 in Introduction to Computer Programming I (C) by admin (9.9k points)
ID: 25955 - Available when: Unlimited - Due to: Unlimited
| 78 views
2 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21765 - Available when: Unlimited - Due to: Unlimited
| 102 views
11,539 questions
144,438 answers
149,285 comments
4,159 users