Question: Write the algorithm that for a given M finds the sum of the numbers from 1 to M (1+2+...+M).
Write the algorithm that for a given M finds the sum of the numbers from 1 to M (1+2+...+M).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
