Write a program in python using while to print the product of odd numbers from 6 to 10.
Answers
Answered by
0
Answer:
Here you go:
_______________________
pro=1
for i in range(6,11):
if i%2!=0:
pro=pro*i
print(pro)
______________________
Answered by
3
product = 1
counter = 6
while counter < 11:
if counter % 2 != 0:
product *= counter
counter += 1
print(product)
Similar questions