answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

void main()

{

float cp, sp, p, l;

clrscr();

printf("\n Enter cost price and selling price:");

scanf("%f%f",&cp, &sp);

p=sp-cp;

l=cp-sp;

if(p>0)

{printf("\n The seller has made a profit of Rs.%f",p);

}

else if(l>0)

{printf("\n The seller is in loss by Rs.%f",l);

}

else

{printf("\n There is no loss or no profit");

}

}

i m sure this will help u.....

shalini

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a c program for profit and loss percentage?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you find the profit and loss in percentage?

The answer depends on percentage of WHAT!


How do you calculate net profit margin if there is net loss?

The Gross Profit Margin = Gross Profit/Revenue*100 regardless of weather the Gross Profit is positive or negative (a loss). Therefor, it is acceptable to have a negative Gross Profit Margin.


What is another name for Net earnings loss as a percentage of sales?

profit margin


Is profit or loss percentage calculated on Cost price or selling price?

Of course on cost price. J


How do I calculate simple profit and loss?

Profit or loss = income - expenses. A positive number is profit, a negative number is loss.


Why profit and loss account is called as profit and loss account and why not profit or loss account?

Tradition, and the need to call it something.


Do provisions for loan loss go in the balance sheet or profit and loss?

Profit and Loss.


How do I Find the incremental profit or loss?

The incremental profit or loss is the change in profit or loss over the designated time period. After calculating the profit or loss, for example on a monthly basis, the delta between that and the average monthly profit or loss from the prior year can be determined.


What is the difference between profit and loss account and profit and loss appropiation account?

Profit and loss accont is used to calculate the profit or loss of business while profit and loss appropriation account is used to allocate or distribute net income or loss to share holders or different reserves account.


What are the Advantages of a profit and loss statement?

what are the advantages of profit and loss statement?


What are the limitations of profit and loss account?

"What are the limitations of profit and loss account?"


Advantages and disadvantages of trading profit and loss account?

: Profit and loss account gives the actual information about net profit or net loss of the business for an accounting period, Profit and loss account gives the actual information about indirect expenses, Profit and loss account serves to show the ratio between net profit to sales, Profit and loss account helps in showing the ratio between net profit to operating expenses, Profit and loss account helps in controlling indirect expenses