One line contains a character and some text. Write a program that replaces all even-numbered characters in text with a given character. Character numbering starts from 1.
Sample input and output
| Test number |
Input |
Output |
| 1 |
t word |
stoto |
| 2 |
a test test |
tasa aeat |