Wap to print your teacher id, basic salary, hra , ta, da, pf,total salaryin c language
Wap to print your teacher id, basic salary, hra , ta, da, pf,total salaryin c language
Program:-
#include<stdio.h>
#include<conio.h>
main()
{
char name[17];
int id,bs,hra,ta,da,pf,ts;
clrscr();
printf("enter the name of teacher");
gets(name);
printf("enter the id");
scanf("%d", & id);
printf("enter the basic salary,hra,ta,da,pf");
scanf("%d%d%d%d%d",&bs,&hra,&ta,&da,&pf);
ts=bs+hra+ta+da-pf;
clrscr();
printf("name of the teacher is %s\n" ,name);
printf("%id is d\n",id);
printf("total salaryis %d",ts);
getch();
}
1 comment
Easy merhod
Post a Comment