LOSS AND PROFIT
Program number# 2
Program that determine loss and profit
Program:
void main (void
{
int sale, cost;
printf(“enter cost price”);
scanf(“%d”, &cost);
printf(“enter sale price”);
scanf(“%d”, &sale);
if (sale > cost)
printf(“you are in profit”);
else
printf(“you are in loss”);
}
This program will print the loss and profit of different things which can be sale.....
This program will print the loss and profit of different things which can be sale.....
0 comments:
Post a Comment
Please do not enter any spam link in the comment box