ShriRam Changed status to publish August 18, 2023
first,second=0,0
print (“enter 0 to stop taking input:”)
while True:
number=int(input(“Please enter a number: “))
if number ==0:
break
if number> first:
second = first
first=number
elif number> second:
second= number
print(f”The Largest number is {first} “)
print(f”The Second Largest number is {second}”)
ShriRam Changed status to publish August 18, 2023