BASIC PROBLEM OF C AND ITS SOLUTION CHAPTER1

0 min read

  </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

Welcome to prgrmramit.blogspot.com! I'm Amit Singh, an expert in AI, Data Science, and Machine Learning. I created this blog to share practical insights and tips for those eager to learn and gro…

1 comment

  1. second ago
    Nice Article Friend Visit My Websites
    Smartphone Review
    Gadget Review
    Blogging Seo Tips
    Games Tips
    Latest Apps
    Laptop Review
    Trending Topics
    NagKudari Blogspot

Subscribe with Gmail


Premium By Raushan Design