Question: Write a for loop that sums up all the multiples of 7 from 7 to 7 0 0 and prints up the final calculated sum
Write a for loop that sums up all the multiples of from to and prints up the final calculated sum which is In other words, the for loop adds up
Write a while loop that begins to add up the same sequence of numbers but stops when the sum of the numbers so far is greater than This loop should also use a variable to count up how many times the loop repeated in order for the sum to rise above The sum should be just over specifically and the count should be Print out both numbers.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
