This is a program for c. You can find out someone's salary detail with this program.
#include<stdio.h>
void main(){
float basic, medical, others, fund, total, year;
printf("Please Enter The Basic: ");
scanf("%f",&basic);
basic=basic;
medical=basic*.1;
fund=basic*.15;
others=basic*.2;
total=basic+medical-fund+others;
year=total*12;
printf("Basic=%f\n",basic);
printf("Medical=%f\n",medical);
printf("Others=%f\n",others);
printf("Monthly Total Sallery=%f\n",total);
printf("Yearly Total Sallery=%f\n",year);
printf("Profident Fund Per Month=%f\n",fund);
}
No comments:
Post a Comment