| 9 | }; // semicolon is important |
| 10 | |
| 11 | int main(){ |
| 12 | struct employee e1, e2, e3; |
| 13 | |
| 14 | printf("Enter the value of code\n"); |
| 15 | scanf("%d", &e1.code); |
| 16 | |
| 17 | printf("Enter the value of salary\n"); |
| 18 | scanf("%f", &e1.salary); |
| 19 | |
| 20 | printf("Enter the value of name\n"); |
| 21 | scanf("%s", &e1.name); |
| 22 | printf("%d %f %s\n", e1.code, e1.salary, e1.name); |
| 23 | |
| 24 | |
| 25 | printf("Enter the value of code\n"); |
| 26 | scanf("%d", &e2.code); |
| 27 | |
| 28 | printf("Enter the value of salary\n"); |
| 29 | scanf("%f", &e2.salary); |
| 30 | |
| 31 | printf("Enter the value of name\n"); |
| 32 | scanf("%s", &e2.name); |
| 33 | printf("%d %f %s\n", e2.code, e2.salary, e2.name); |
| 34 | |
| 35 | |
| 36 | |
| 37 | printf("Enter the value of code\n"); |
| 38 | scanf("%d", &e3.code); |
| 39 | |
| 40 | printf("Enter the value of salary\n"); |
| 41 | scanf("%f", &e3.salary); |
| 42 | |
| 43 | printf("Enter the value of name\n"); |
| 44 | scanf("%s", &e3.name); |
| 45 | printf("%d %f %s\n", e3.code, e3.salary, e3.name); |
| 46 | |
| 47 | return 0; |
| 48 | } |
nothing calls this directly
no outgoing calls
no test coverage detected