f) If amount1 is greater than 10 and amount2 is less than 100, display the greater of amount1 and amount2 . Flowchart Code Fragments (python source code, not Screenshot)
amt1=int(input("Enter amt 1 ")) # input 1
amt2=int(input("Enter amt 2")) # input 2
if(amt1>10 and amt2<100): # given Condition
if (amt1== amt2):
print(" both are equal")
elif(amt1>ant2):
print (" amt1 is large:)
else :
print (" amt2 is large:")
Get Answers For Free
Most questions answered within 1 hours.