Computer Science, asked by Anonymous, 11 months ago

Python program to print odd numbers in a given range........


don't spam.......


❣Aarvi​

Answers

Answered by VishalSharma01
204

Answer:

Explanation:

Python Code :-

#1

lower_limit = int(input("Enter the lower limit : "))

upper_limit = int(input("Enter the upper limit : "))

#2

for i in range(lower_limit,upper_limit + 1):

   #3

   if(i%2 != 0):

       print("{} ".format(i))

Output :-

Enter the lower limit : 3

Enter the upper limit : 13

3

5

7

9

11

13

Answered by Anonymous
49

lower=int(input("Enter the lower limit:"))

upper=int(input("Enter the upper limit:"))

for i in range(lower,upper+1):

   if(i%2!=0):

       print(i)

Output:

Enter the lower limit : 1

Enter the upper limit : 10

1

3

5

7

9

#BeBrainly

Similar questions