3.2k views
4 votes
Write an algorithm to find the sum of odd numbers between 0 and 100​

User Juuga
by
5.2k points

1 Answer

1 vote

Answer:

Step 1: Start the process. Step 2: Let the value of the desired sum be assigned to S. Step 3: Calculate the value of S as 50/2 (2*2+(50-1)*2). Step 4: Print the value of S.

User Joe Mellin
by
5.4k points