three type
Anonymous
plain_text
04/23/2023 9:17 AM
648 B
14
Indexable
for type in range (1,4):
if type ==1:
num1=int(input("number of type 1 ="))
bill1=num1*20000
print("the bill is", bill1)
elif type ==2:
num2=int(input("number of type 2 ="))
bill2=num2*40000
print("the bill is", bill2)
elif type ==3:
num3=int(input("number of type 3 ="))
bill3=num3*55000
print("the bill is", bill3)
total_bill=bill1+bill2+bill3
print("the total bill is", total_bill)Editor is loading...