#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
double amount,res;
char ch;
cout<<"Welcome to Bharat Petroleum"<<endl;
cout<<"Press P for Petrol and D for Diesel:"<<endl;
cin>>ch;
{
if (ch=='P')
cout<<"Enter your Amount:"<<endl;
cin>>amount;
res=(amount/68)*1;
cout<<"Petrol purchased in litres:"<<endl<<res;
}
{
if (ch=='D')
cout<<"Enter your Amount:"<<endl;
cin>>amount;
res=(amount/48)*1;
cout<<"Diesel purchased in litres:"<<endl<<res;
}
getch();
}