If the price of one table is 3000. Find the price of 5 tables in python codr
Answers
Answered by
5
Here comes the code for the question.
price_of_table=3000
number_of_tables=5
total_price=price_of_table*number_of_tables
print("Price of 1 table:",price_of_table,"rupees.")
print("Price of 5 tables:",total_price,"rupees.")
- Here, the price of 1 table is rupees 3000.
- So, to get the price of 5 tables, we will simply multiply price of 1 table with 5 to get the desired result.
- Now, the price will be displayed on the screen.
Attachments:
Answered by
2
Answer:
price = 3000 #For 1 table as per question
print('Price of 5 tables = $' , price*5 )
Output:
Price of 5 tables = $15000
>>>
Hope this helps : )
Similar questions