I am new to the C Programming table but i was wondering some can help me. I am trying to build a user input program with three line but whenever I put in the information i only get zeros. This is what I have have, can someone take a look and help me see my error please.
#include <stdio.h>
int main (void)
{
int plus;
float price;
float mealTax = (4.5/100), total = 0;
float division;
printf("Enter hamberger price:$ ");
scanf("%.2f", &price);
fflush(stdin); /* clear input buffer */
mealTax = price * mealTax;
printf("\nMeal Tax price is $%.2f * $%.2f is $%.2f\n\n", mealTax, price, division);
total = price + mealTax;
printf("\nTotal price is $%.2f + $%.2f = $%.2f\n\n", price, mealTax);
return 0;
}