My this code is not working. Please help me
#include <stdio.h> int main() { int salary,allow; float hra,da,pf,total; int grade; printf("Hello Everyone, This is a program to find the salary"); printf("\n Please Enter Your Basic Salary"); scanf("%d",&salary); printf("Please enter your grade"); scanf("%d",&grade); hra=0.2*salary; da=0.5*salary; pf=0.11*salary; printf("Your HRA is %f",hra); printf("Your DA is %f",da); printf("Your PF is %f",pf); if(grade==1){ allow=1700; printf("Your allow amount is %d",allow); } else if(grade==2){ allow=1500; printf("Your allow amount is %d",allow); } else{ allow=1300; printf("Your allow amount is %d",allow); } total=salary+hra+da+allow-pf; printf("Your total salary is %f",total); }