Originally Posted by
rstanley
Please post your code as plain text in Code Blocks, not as an unclear image.
Sorry about that. The photo was clear on my computer.
Code:
#include <stdio.h>
int main () //start of program
{
float tax=.08, total, sale; //signifies variables
printf("Please enter the sales amount."); //output to user to enter sales amount
scanf("%f",&sale); //User inputs total sale amount
total=sale*tax; //Assignment expression to calculate sales tax
printf("Your total sales tax is:%.2f\n", &total); //final output from calculations
return 0; //end of program
}