Computer Science, asked by aryaman2007satapathy, 2 months ago

If the price of one table is 3000. Find the price of 5 tables in python codr

Answers

Answered by anindyaadhikari13
5

\texttt{\textsf{\large{\underline{Solution}:}}}

Here comes the co‎‎de 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.")

\texttt{\textsf{\large{\underline{Explanation}:}}}

  • 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 HarishAS
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