# include<conio.h>
voide main();
{
clrscr();
int pay, dis, total;
printf("Payment=");
scanf("%d", &total);
if(pay<200)
{
dis=pay*5/100;
total=pay-dis;
}
if(pay>=200)
{
dis=pay*15/100;
pay=total-dis;
}
printf("Total=%d", total);
getch();
}
0 comments:
Speak up your mind
Tell us what you're thinking... !