Posts

Showing posts from May, 2020

(a) 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.

Image
Let Us C by Yashwant Kanetkar   Solution By Muhammad Kaleem UIlah                                                                                    Exercise Questions  [H] Write C programs for the following: (a) 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. Solution :  #include<stdio.h> #include<stdlib.h> int main() { float bs,da,hr,ts; printf("\n\t\t Do You Want to Calculate Your Salary ? "); printf("\n\t\t*******************************************"); printf("\n\t\t Enter Your Ba...