You are on page 1of 1

1

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float c, s, p;
printf("enter the values of cost price and
selling price\n");
scanf("%x",&c);
printf("x = %x", c);
p= 23;

if (p>0) {
printf("the seller has made a profit");
}
else if(p==0) {
printf ("the seller has neither incurred a
loss nor profit");
}
else
printf("the seller has made a loss of");
getch();
}

You might also like