Computer Science, asked by negimansi277, 4 months ago

Write a program in python using while to print the product of odd numbers from 6 to 10.

Answers

Answered by allysia
0

Answer:

Here you go:

_______________________

pro=1

for i in range(6,11):

   if i%2!=0:

       pro=pro*i

print(pro)

______________________

Answered by jai696
3

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

product = 1

counter = 6

while counter < 11:

if counter % 2 != 0:

product *= counter

counter += 1

print(product)

Similar questions