Using Namespace: "Enter Quantity:" "Enter Price:"
Using Namespace: "Enter Quantity:" "Enter Price:"
math;
double a = -23.45;
int b = 234;
double c = 12.54;
int main()
{
int totalexp, qty, price, discount;
cout<<"Enter quantity:";
cin>>qty;
cout<<"Enter price:";
cin>>price;
totalexp=qty*price;
if(totalexp>5000)
{
discount=(totalexp*0.1);
totalexp=totalexp-discount;
}
return 0;
}
include<iostream>
float s,c,pr;
cout<<"\n";
cin>>s;
cin>>c;
pr=s-c;
if (s>c)
cout<<"\n";
else if (s<c)
cout<<"\n";
else