Question: P8. We have a file containing floating point numbers (we don't know how many). Write a complete C program that adds up only the numbers
P8. We have a file containing floating point numbers (we don't know how many). Write a complete C program that adds up only the numbers that are whole (3.0, 12.0, 123.0), ignore the numbers having decimals other than 0. If you use file input, assume the file is named "numbers.data".
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
