Computer Science, asked by barikaru7754, 5 hours ago

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