0

Hi,

well my question is how to calcuate the total cost for a shop which is as follows

```
Item Quantity Price per unit Total cost
1 2 20 40
3 1 25.50 25.50
```

Total 65.50

```
float total(int qty, int price);
{
int t;
t=qty*price;
if ((qty<10.00)&&(price<100.00);
return t;
else
cout<<"Error"<<endl;
}
```

Is it like that???

really need help to calculate this plz help

Thx