I dont know why but its giving me the message "syntax error before '=' tokenCode:if (tax == 1) {
price += shippingcost;
total = price - (price * TAX_RATE);
return total;
}
for the line total = price - (price * TAX_RATE);. I cant figure it out why am I getting this error? (it is an 80 lined program and commenting this one line out allows it to compile).Thanks