Program to print the percentage of profit of lose for given cost price and selling price using conditional operator.

 

Sample Input Output
Enter the Cost Price: 500
Enter the Selling Price: 500
No profit no lose
Sample Input Output
Enter the Cost Price: 550
Enter the Selling Price: 570
Wow! The profit is 3.636364 percentage

You may also like...