Bigger Odd Get link Facebook X Pinterest Email Other Apps Bigger OddQUESTION DESCRIPTIONWrite a program to find the biggest odd number from the given inputInput:Positive numbersOutput:Display the largest odd number.Refer sample input and output for formatting specification.l=[]o=[]n=int(input())for i in range (0,n): number=int(input()) l.append(number)for i in l: if i%2!=0: o.append(i)la=max(o)print("Largest odd number",la) Comments
Comments
Post a Comment