If cost price and selling price of an item is input through the keyboard,
write a program to determine whether the seller has made profit or incurred loss.
Also determine how much profit he made or loss he incurred.
printf ("Enter the cost price and selling price of the item: ");
scanf ("%d %d", &cp, &sp);
else if (cp>sp)
printf ("No profit no loss");
The file can be downloaded at: