j

Monday, 2 November 2015

Write a program that calculate the total sale of a shop take per unit price of the product , total sold unit and total discount

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
long int tot_sale;
int q,p,dis;
cout<<"Enter the per unit price ::";
cin>>p;
cout<<"Enter the total sold quantity ::";
cin>>q;
cout<<"Enter the total discount ::";
cin>>dis;
tot_sale=(p*q)-dis;
cout<<"Total sale of a shop is "<<tot_sale;
getch();

}


Subscribe to this Blog via Email :