Write a while-loop to compute the sum of positive integers


Problem:

Question 1- Write a while-loop to compute the sum of the first 10 positive integers, the sum of the squares of the first 10 positive integers, and the sum of their cubes
Let x = (6,-3,7,-8,1).

Question 2- Write a while-loop to determine the largest positive integer, N, in the sequence 1,2,3,...,N for which the sum of the squares of the integers up to that number is less than 1000.
12 + 22 + ... + N2 < 1000

Show the code, demonstrate it works properly and describe what it is doing.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a while-loop to compute the sum of positive integers
Reference No:- TGS0893745

Expected delivery within 24 Hours