python program to input cost price, profit in percentage and calvulate selling price
Answers
Answered by
1
Answer:
This python program allows the user to enter the Sales amount and Actual cost of a Product. Next, Python calculates the Loss Amount or profit Amount based on those two values using Elif Statement.
Answered by
0
Answer:
cp=int(input())
sp=int(input())
gain=sp-cp
print(gain)
print(format((gain/cp)*100,'.1f'))
Explanation:
cp-Cost Price
sp-Selling Price
format specifier to print percentage in 1 decimal value
Similar questions