Question: create a program and use these 2 variable float total_sale; /* User's sale amount will go here */ float stax; get the sales amount from
create a program and use these 2 variable
float total_sale; /* User's sale amount will go here */
float stax;
get the sales amount from the user
/* Calculate sales tax */
stax = total_sale * .07;
print sales tax and total sales tax
please debug this program
#include
main()
{
char user_ans;
do
{ printf("C is fun! ");
break; /* Causes early exit */
printf("Do you want to see the message again (N/Y)? ");
scanf(" %c", &user_ans);
while (user_ans == 'Y');
print("That's all for now ");
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
