algorithm to print the product of first 500 odd numbers
please tell it's answer
Answers
Answered by
0
Answer:
the answer for product of first 500 odd numbers is infinite but the algorithm is as follows.
Explanation:
N=500
X=1
product=1
X=X+2
product = product*X
N--
N = 0 ? Y/N if N then go to line 4
print product.
Similar questions