ok so im making a purchase receipt kinda of program but everytime i try it it never works

what is wrong with it, i don't understand any help would be appreciatedCode:#include <math.h> #include <stdio.h> #include <stdlib.h> int main() { char tea,y,n; double tot,dis,tax,toty,totu,toty2,tot1,tot2,totu2,taxs; printf("What is the total amount of the purchase: "); scanf("%d",&tot); printf("Is the buyer a teacher?: "); scanf("%c",&tea); printf("%c",tea); if (tea==y){ if (tot>=100){ tot1=tot*0.12; toty=tot-tot1; taxs=toty*0.05; toty2=toty+taxs; printf("Your savings today are: %f\n",tot1); printf("You get a 12% discount, so your total before tax is: %f\n",toty); printf("Your Tax Amount is: %f\n",taxs); printf("Your total with a 5% sales tax is: %f\n",toty2); } else if (tot>0){ tot2=tot*0.10; totu=tot-tot2; tax=totu*0.05; totu2=totu+tax; printf("Your savings today are: %f\n",tot2); printf("You get a 10% discount, so your total before tax is: %f\n",totu); printf("Your Tax Amount is: %f\n",tax); printf("Your total with a 5% sales tax is: %f\n",totu2); } else { printf("Enter an amount Higher than Zero\n"); } } getchar(); }

Thanks