c that prompts the user for the sum of up to five real valuesand prints the number of terms and their sum with a two-digit precision.
(˜)$ a.out
Type a sum of two to five reals: 2 3.3 4.44=
Your 3 terms add to 9.74.
(˜)$ a.out
Type a sum of two to five reals: 2.222 4.444=
Your 2 terms add to 6.67.