BASIC PROBLEM OF C AND ITS SOLUTION CHAPTER1

  </PROBLEMS>


YOU CAN ALSO READ THIS POST


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 

MY FIRST C PROGRAM

Post a Comment

1 Comments