AR2EMPLOYEES - Employees (Struct)

no tags 

Build a struct that stores employee information in a structure:

  • id: string
  • name: string
  • gender: string
  • salary: integer

Allow user to enter the number of employees and information for each one, then display a list.

Input

n

ID1
name1
gender1
salary1
ID2
name2
gender2
salary2
.....

Output

ID1 : name1 : gender1 : salary1
ID2 : name2 : gender2 : salary2
.....

Example

Input:
3
NV01
Tran Thanh Hung
F
1500
NV02
Nguyen Ngoc Bich
M
2000
NV03
Tran Trung Hau
F
1700

Output:
NV01 : Tran Thanh Hung : F : 1500
NV02 : Nguyen Ngoc Bich : M : 2000
NV03 : Tran Trung Hau : F : 1700


Added by:khanhvh
Date:2020-11-17
Time limit:1s-5s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All