/* CALCULATION OF TOTAL EXPENSES IN CASE OF DISCOUNT */
#include<stdio.h>
#include<conio.h>
main()
{
int qty;
float dis,price,tot_price;
printf("Enter the quantity and price of the item\n");
scanf("%d%f",&qty,&price);
if(qty>1000)
{dis=(float)0.1;
tot_price=(qty*price)-(qty*price*0.1);
printf("Total expense=%.2f",tot_price);
}
else
{tot_price=qty*price;
printf("Total expense=%.2f\n",tot_price);
}
getch();
}


