Professional Documents
Culture Documents
Lovely Institute of Engineering and Computer Applications
Lovely Institute of Engineering and Computer Applications
Applications
B.tech-M.tech (cse)
Void main ()
{
Char pump_name [25];
long int diesel_price;
long int petrol_price;
long int litre;
long int total_price_diesel;
long int total_price_petrol
long int tot_petrol;
long int tot_diesel;
long int tot_amountp;
long int tot_amountd;
int choice;
clrscr();
printf("\n enter the name of petrol pump=");
gets(pump_name);
printf("\n enter the no. of litres of petrol received by the
dealer");
scanf(“%ld”,&tot_petrol);
printf("\n enter the no. of litres of diesel received by the
dealer");
scanf(“%ld”,&tot_diesel);
printf("\n enter the price of diesel per litre=");
scanf(“%ld”,&diesel_price);
printf("\n enter the price of petrol per litre=");
Scanf (“%ld”,&petrol_price);