Skip to content

Commit fe1faa0

Browse files
authored
Add files via upload
1 parent 00e3a43 commit fe1faa0

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

employe structure.c

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
#include<stdio.h>
3+
struct employe{
4+
int employe_code;
5+
char nam;
6+
int day;
7+
int month;
8+
int year;
9+
}a[3];
10+
11+
12+
main()
13+
{
14+
struct employe e1={2,"ali",20,1,2019};
15+
struct employe e2={3,"ki",24,3,2018};
16+
struct employe e3={5,"ww",9,2,2012};
17+
int a,b,c;
18+
int i;
19+
printf("enter day \n");
20+
printf("enter month \n");
21+
printf("enter year \n");
22+
scanf("%d %d %d",&a,&b,&c);
23+
24+
for(i=1;i<=3;i++)
25+
{
26+
if((c - e3.year)>=3)
27+
{
28+
printf("%s",e3.nam);
29+
30+
}
31+
32+
33+
}
34+
}

0 commit comments

Comments
 (0)