Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 your answer image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Finance The Role Of Data Analytics In Manda Due Diligence

Authors: Ps Publishing

1st Edition

B0CR6SKTQG, 979-8873324675

Students also viewed these Databases questions