Write a program that accept basic salary of employee and compute the bonus @20 % of basic. Print Bonus and gross salary too in C.



#include<conio.h>

#include<stdio.h>

void main()

{

  int sal,gs,bonus;

  printf("Enter the Basic sallary of employee = ");

  scanf("%d",&sal);

  bonus=(sal*20)/100;

  gs=sal+bonus;

  printf("Bonus is = %d\n",bonus);

  printf("Grass sallary is = %d",gs);

getch();

}

OUTPUT :- 
Previous Post
Next Post