Computer Science, asked by devnakashyap7, 3 months ago

algorithm to print the product of first 500 odd numbers
please tell it's answer ​

Answers

Answered by amitsharma1598
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