94.3k views
0 votes
Write the basic program to print 50 to 1 odd number.​

1 Answer

2 votes

Answer:

Step-by-step explanation:

Sure, here's a basic Python program that prints odd numbers from 50 to 1:

```python

for num in range(50, 0, -1):

if num % 2 != 0:

print(num)

```

When you run this program, it will iterate through the numbers from 50 down to 1, and for each number, it will check if it's odd (not divisible by 2). If the number is odd, it will be printed.

User Unutbu
by
8.4k points

No related questions found