Hello,
I m very new to c program , and is unable to solve the simple program. please help me.
to input basic salary and to find gross salary if dearness allowance is 40% of basic salary and house rent allowance is 20% of basic salary
Code:#include <stdio.h> #include <math.h> int main() { int bs,da,hra,gs; printf("basic salary :"); scanf("%d\n",&bs); da=40/100*bs; hra=20/100*bs; gs=bs+da+hra; printf(" The gross salary is :%d\n",gs ); return 0; }