+ 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
1 Respuesta
+ 1
A code of the day thread
https://www.sololearn.com/discuss/528913/?ref=app