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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!