Question: Help please! C -programming only! Basic for loop question. if you can please add comments to your code so i can see how you got
6. (14 points) 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 (i.e., after multiplying by 10) is greater than 85 , the integer (as it was read in, i.e., before it was multiplied) 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 not need to include the stdlib or system( "pause") statements. For example, if the input from the keyboard is: we expect the final outputted answer to be: 1900
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
