#include <iostream>
usingnamespace std;
int main()
{
float x; //price of item
double y = 0.06; //sales tax
float slstax;
float total;
cout<<"input your item's price";
cin>>x;
x * y = slstax;
x + slstax = total;
cout<<"this is your final price, in pennsylvania"<<total<<endl;
return 0;
}
its telling me this...
1>c:\users\trey\documents\visual studio 2010\projects\sales tax\sales tax\sales tax source code.cpp(15): error C2106: '=' : left operand must be l-value
i am believing that something HAS to go infront of the x in both of these statements but...idk... help would be great! :D ty in advance!