Question: Write a script that can sum all the numbers from one to some arbitrary integer N by utilizing both a for loop and a while
Write a script that can sum all the numbers from one to some arbitrary integer N by utilizing both a for loop and a while loop. Then use these scripts to calculate the sum of the integers between one and fifty. Check your answer using the command sum(1:50).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
