-
Notifications
You must be signed in to change notification settings - Fork 2
/
git.c
46 lines (40 loc) · 805 Bytes
/
git.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include <stdio.h>
#include <stdlib.h>
int main()
{
char s_name[20],area;
float b_salary,sal;
int serv,sales;
printf("Enter your name : ");
scanf("%s",&s_name);
printf("Enter the area : ");
scanf("%s",&area);
printf("Enter your basic salary : ");
scanf("%f",&b_salary);
printf("Enter your number of years in service : ");
scanf("%d",&serv);
printf("Monthly sales : ");
scanf("%d",&sales);
sal=b_salary; */
//A
//N
if (serv>5)
{
sal=sal+(sal*0.1);
}
if (area=='C')
{
sal=sal+2500;
}
if (sales<=25000)
{
sal=sal+(sales*0.1);
}
else if (sales<50000)
{
sal=sal+(sales*0.12);
//I
printf("Name : %s \n",s_name);
printf("Your gross monthly remuneration is %f ",sal);
return 0;
}