Page

Thursday 4 June 2020

program to find gross salary//c project mania//luv yadav

#include<stdio.h>
#include<conio.h>
void main()
{
 float bs,gs,da,hra;
 clrscr();
 printf("Enter basic salary:-");
 scanf("%f",&bs);
 if(bs<=1500)
 {
  hra=bs*10/100;
  da=bs*90/100;
 }
 else
 {
  hra=500;
  da=bs*98/100;
 }
  gs=bs+hra+da;
  printf("gross salary=Rs.%f\n",gs);
  getch();
}

  output of the program is given below:-

  https://youtu.be/tzYRs3ojq6Y

No comments:

Post a Comment