Write a program, that reads a cardinal N — an array size, then N integers. Reorder the array in such a way that the elements of it's first half take corresponded even positions, and the elements of it's second half reordered backwards and take odd positions. If N is odd, first half is bigger than second.

11
23 89 34 35 79 26 78 72 37 86 82

Use malloc() to allocate memory for the array.

23 82 89 86 34 37 35 72 79 78 26

To be precise:


CategoryHomework

HSE/ProgrammingOS/Homework_ShuffleArray (последним исправлял пользователь FrBrGeorge 2020-02-23 23:31:02)