/* PROFIT AND LOSS */
#include<stdio.h>
#include<conio.h>
main()
{
float cp,sp,pro,los;
printf("Enter the cost price and selling price of the item\n");
scanf("%f%f",&cp,&sp);
pro=sp-cp;
los=cp-sp;
if(pro>0)
printf("Profit=Rs.%.2f\n",pro);
else if(los>0)
printf("Loss=Rs.%.2f\n",los);
else if(pro==0 && los==0)
printf("Profit=Rs.%.2f and loss=Rs.%.2f\n",pro,los);
getch();
}


