#C2117. Quirky Password Generator
Quirky Password Generator
Quirky Password Generator
In this problem, you are given a string s and you must generate a quirky password by converting the characters to alternating case: the first character to uppercase, the second to lowercase, the third to uppercase, and so on. Formally, for an index (i) (0-indexed) in the string, the character is transformed as follows:
[ output[i] = \begin{cases} \text{Uppercase}(s[i]) & \text{if } i \equiv 0 \pmod{2},\ \text{Lowercase}(s[i]) & \text{if } i \equiv 1 \pmod{2}. \end{cases} ]
The result is printed to standard output. This task tests your ability to manipulate strings and apply conditional logic in a straightforward manner.
inputFormat
The input consists of a single string. The string will be provided via standard input (stdin) and does not contain any spaces.
outputFormat
Output the transformed string where characters are in alternating cases as specified. The result should be printed on a single line to standard output (stdout).## sample
abcdefgh
AbCdEfGh