#include<stdio.h>
#include<conio.h>
main()
{
float gross_salary,basic,da,ta;
printf("Enter basic salary : ");
scanf("%f",&basic);
da = ( 10 * basic ) / 100;
ta = ( 12 * basic ) / 100;
gross_salary = basic + da + ta;
printf("Gross salary : %f\n",gross_salary);
}
#include<conio.h>
main()
{
float gross_salary,basic,da,ta;
printf("Enter basic salary : ");
scanf("%f",&basic);
da = ( 10 * basic ) / 100;
ta = ( 12 * basic ) / 100;
gross_salary = basic + da + ta;
printf("Gross salary : %f\n",gross_salary);
}
No comments:
Post a Comment