Write a python program that accepts cost of goods sold revenue generated, operating costs and prints gross profit, net profit and net profit percentage.
Answers
Answered by
18
Explanation:
cgos = int(input('Enter cost of goods sold : '))
rg = int(input('Enter revenue generated : '))
oc = int(input('Enter operating cost : '))
gp = rg - cogs # Gross profit
np = gp - oc # Net profit
npp = np/rg*100 # Net profit percentage
print('Gross profit is', gp)
print('Net profit is', np)
print('Net profit percentage is', npp)
Answered by
1
Answer:
answers below
Explanation:
cgos = float(input("Enter cost of goods sold :-"))
rev_gen = float(input("Enter revenue generated :-"))
os = float(input("Enter operating costs :- "))
print("Gross profit = ", rev_gen - cgos)
net_profit = rev_gen - cgos - os
print("Net profit = ", net_profit )
npp = net_profit / rev_gen * 100
print("Net profit percentage = " , npp)
Similar questions