+ 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

2nd Oct 2018, 7:36 AM
Shubham Negi
Shubham Negi - avatar
11 Antworten
0
Then? Do you want that other users make YOUR assignement for you?
2nd Oct 2018, 7:40 AM
KrOW
KrOW - avatar
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)
2nd Oct 2018, 7:46 AM
KrOW
KrOW - avatar
0
KrOW see this and tell me if it is wright
2nd Oct 2018, 7:49 AM
Shubham Negi
Shubham Negi - avatar
0
Shubham Negi You know that scanf want the adress of param on which it will write the value?
2nd Oct 2018, 7:55 AM
KrOW
KrOW - avatar
0
what
2nd Oct 2018, 7:57 AM
Shubham Negi
Shubham Negi - avatar
0
Shubham Negi scanf("%d", BP); For you this is correct? Following your code, i see in this line 2 errors
2nd Oct 2018, 7:59 AM
KrOW
KrOW - avatar
0
?
2nd Oct 2018, 8:00 AM
Shubham Negi
Shubham Negi - avatar
0
Shubham Negi But you have runned your code? Save it on "Code Playground" section and post his link here else its unuseful continue
2nd Oct 2018, 8:01 AM
KrOW
KrOW - avatar
0
.
31st Dec 2022, 12:38 PM
Akshat kumar Sharma
Akshat kumar Sharma - avatar
0
Algorithem of compute net salary (ns=bp+hra+ta+da)
2nd Jan 2023, 9:24 AM
Aswad Khan
Aswad Khan - avatar
- 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); }
2nd Oct 2018, 7:47 AM
Shubham Negi
Shubham Negi - avatar