+ 1

3. Write a program to print the following output for the given input. You can assume the string is of odd length .

Eg 1: Input: 12345 Output: 1 5 2 4 3 2 4 1 5

28th Sep 2017, 12:04 PM
karthik
karthik - avatar
1 ответ
+ 2
input a number not string, try to input less than 10. check it for odd input and then also try for even number input https://code.sololearn.com/cBjAN964lvcG/?ref=app
28th Sep 2017, 2:45 PM
Azam
Azam - avatar