Design an algorithm to solve the problem using pseudocode:
(Summation of odd numbers) Write a program that displays the sum of the first ten odd numbers.
The algorithm may look like this:
input("Input at least 10 numbers")
Sum=sum(i1,i3,i5,i7,i9)
print(Sum)
Comments
Leave a comment