+ 1
C program to calculate NET SALARY ...BY FORMULA 'NS=BP+HRA+TA+DA' where HRA=10%of BP,TA=5%of BP and DA=15%of BP
none
11 Antworten
0
Then? Do you want that other users make YOUR assignement for you?
0
Shubham Negi You need to study... Start with posting your try and you will get help on it... Dont expect that someone make all solution for you (least who want help you)
0
KrOW see this and tell me if it is wright
0
Shubham Negi You know that scanf want the adress of param on which it will write the value?
0
what
0
Shubham Negi
scanf("%d", BP);
For you this is correct? Following your code, i see in this line 2 errors
0
?
0
Shubham Negi But you have runned your code? Save it on "Code Playground" section and post his link here else its unuseful continue
0
.
0
Algorithem of compute net salary (ns=bp+hra+ta+da)
- 1
trere is my exam on 4 th and i need to know the solution if any one can ....i have made it but..just want to tally my coding....
include<stdio.h>
void main()
{
float BP,NS,HRA,TA,DA;
printf("enter the basic pay");
scanf("%d",&BP);
HRA=(10/100)*BP;
TA=(5/100)*BP;
DA=(15/100)*BP;
NS=BP+HRA+TA+DA;
printf("Net Salary=%f",NS);
}