I need to be able to show the output of price in dollars, state tax and price with sales tax, so far I have the following. What am I doing wrong or what have I left out. The code runs but doesn't not show any output.
the code:
the code:
Code:
int main () { /* variable definition: */ float price, salestax, setprice; /* Prompt user for price */ printf("Enter the price in dollars: \n"); // Input the price scanf("$%f", &price); /* Prompt user for salestax */ printf("Enter the state sales tax: \n"); // Input the salestax scanf("%f", &salestax); // Calculate the setprice setprice = price + (price * salestax); // Print the result printf("price with Tax is: $%f\n", &price); return 0; }
Comment