</PROBLEMS>
PROBLEM 1.1
Ramesh's basic salary is input through the keyboard his dearness allowance is 40% of basic salary,
and house rent allowance is 20% of basic salary.Write a program to calculate his gross salary.
/*Calculate Ramesh'sgross salary */
#include<stdio.h>
int main()
{
float bp,da,hra,grpay;
printf("\nEnter basic salary of rameshL:");
scanf("%f",$bp);
da=0.4*bp;
hra=0.2*bp;
grpay=bp+da+hra;
printf("Basic salary of ramesh=%f\n",bp);
printf("dearness allowance=%f\n",da);
printf("houserent allowance=%f\n"hra);
printf("gross pay of ramesh's is %f\n,grpay");
return 0;
}
YOU CAN ALSO READ THIS POST
1 Comments
Nice Article Friend Visit My Websites
ReplyDeleteSmartphone Review
Gadget Review
Blogging Seo Tips
Games Tips
Latest Apps
Laptop Review
Trending Topics
NagKudari Blogspot