1. Engineering
  2. Computer Science
  3. write a complete c program that uses a forloop to...

Question: write a complete c program that uses a forloop to...

Question details

Write a complete C program that uses a FOR-loop to read in 10 integers. For each of the 10 integers, the program first multiplies the integer by 10, if the result obtained is greater that 85, the integer should be added into a sum that was initialized to zero. After the loop is completed multiply the sum by 100 and then print out the answer. Assume correct input. You do no not need to include the stdlib or system statements.

For example:

if the input is : 1 2 3 4 5 6 7 8 9 10

we expect the final outputted answer to be 1900

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution