South Point - Class XI - Computer Science. Assignment Number 14b - Python Language
1077
Dibyendu Banerjee
09/12/2020
Write a program to input the lower and upper limits of a range of numbers
(including the limits), and then print only those numbers in that range whose
sum of the digits is odd.
For example, if the lower and upper limits input are 20 and 33, then the
numbers that will be printed are 21, 23, 25, 27, 29, 30, 32.
ll=int(input("Enter a Lower limit : "))
ul=int(input("Enter a Upper limit : "))
while(ll<=ul):
n=ll
s=0
while(n>0):
s=s+(n%10)
n=n//10
if(s%2==1):
print(ll)
ll=ll+1