Definition of HTML (Hypertext Markup Language) Full form:- HTML (Hypertext Markup Language). It is the language used to create web pages. Examples:- <html> <head> <title> First Web page</title> </head> <body> This is my first html page </body> </html>
Definition of Resistor: Resistor is an electronic component which provide a specified amount of opposition to the flow of current. The value of resistor is resistance. It is denoted by R and the unit is ohms.
print ( "Welcome to the tip calculater:-" ) bill = float ( input ( "What is the bill:- $" )) per = int ( input ( "What percentage of tip you want to give?:-" )) up_per = per / 100 tip = bill * up_per total_bill = bill + tip total_amount = round (total_bill, 2 ) print ( f"The total bill is $ { total_amount } " ) split = int ( input ( "How many persons to split the bill:-" )) split_amount = total_bill / split final_amount = round (split_amount, 2 ) print ( f"Each person have to pay $ { final_amount } " )
Comments
Post a Comment