During festive season, a company gives 35% allowance to its employees on their basic pay. If the basic pay of an employee is Rs. 20,000/-, Calculate the amount of allowance and total amount payable. Print the basic pay, allowance, total amount of the employee
Answers
Answered by
3
Explanation:
C is one of the basic computer programming language. It is also one of the old languages that is the base of several others languages that is why it is taught at all levels
A program fulfilling the requirements of the question statement can be written as;
Program
#include <stdio.h>
Int main ( void)
{
int basic_pay = 20000
int allowance_per = 0.35
int allowance
int tot_payment
allowance = basic_pay * allowance_per
tot_payment = basic_pay + allowance
printf("Basic pay is %d",basic_pay);
printf("Allowance amount is %d",allowance);
printf("Total pay is %d",tot_payment);
}
Similar questions
Math,
3 hours ago
Math,
3 hours ago
English,
3 hours ago
India Languages,
5 hours ago
Hindi,
8 months ago