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 41 integers. For each of the 41 integers, first multiply the integer by itself;i f the result obtained is greater than 500, the original integer should be added into a sum that was initialized to zero. After the loop, multiply the sum by itself and then print out the answer as an integer.

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