Computer Science, asked by crestylmae6137, 18 days ago

Write a python program to find the cost of 50led bulbs if the cost of bulb is 67.50

Answers

Answered by anindyaadhikari13
9

\texttt{\textsf{\large{\underline{The C{o}de!}}}}

price=67.50

print('Cost of each bulb:',price)

total_bulbs=50

print('Number of bulbs:',total_bulbs)

total_price=price*total_bulbs

print('Total Price:',total_price)

The question asked is very simple. We are provided with the price of each bulb and the number of bulbs and we have to find out the total cost. We can easily find out by multiplying the price of each bulb

with the total number of bulbs i.e., 67.50 × 50 = 3375.0

\texttt{\textsf{\large{\underline{The O{u}tput!}}}}

Cost of each bulb: 67.5

Number of bulbs: 50

Total Price: 3375.0

See attachment for verification.

Attachments:
Similar questions