+ 2

program of the day

program that reads 2n non-blank lines of input (terminated by a blank line), where n is a positive integer. The program should print the last n lines followed by the first n lines last. You can assume that each line is at most 100 characters long Example input: Line 1 Line 2 ... Line 2n <blank> Output: given lines of text reordered as follows. Line n+1 Line n+2 ... Line 2n Line 1 Line 2 ... Line n example: input: Hello World ouput: World Hello

13th Aug 2017, 10:56 AM
SAPTHAGIRIVASAN
SAPTHAGIRIVASAN - avatar
1 Respuesta
13th Aug 2017, 8:47 PM
Manual
Manual - avatar