31.5k views
11 votes
The cost of an items is Rs 200. what will be the cost of 50 such items. write a simple program​

1 Answer

9 votes

Answer:

In Python:

Unit_Cost = 200

Cost50 = 50 * Unit_Cost

print("Cost of 50 items: Rs."+str(Cost50))

Step-by-step explanation:

This initializes the unit cost to 200

Unit_Cost = 200

This calculates the cost of 50 of such items

Cost50 = 50 * Unit_Cost

This prints the calculated cost

print("Cost of 50 items: Rs."+str(Cost50))

User Jiayu Zhang
by
4.1k points