def totalBill(roomNo,rent_per_day, no_of_days, extras ):
total =(rent_per_day*no_of_days)+extras
return total
if __name__ == '__main__':
rn=int(input("Enter room number: "))
rd=int(input("Enter rent per day: "))
nd=int(input("Enter the number of days spent: "))
ex=int(input("Enter amount spent on other expenses, extras: "))
totalAmount=totalBill(rn,rd,nd,ex)
print("The total bill is:", totalAmount)
Comments
Leave a comment