0

Zig-zag strings
Given a string and a positive integer, output the string in a zig-zag wave pattern with a peak amplitude and character spacing equal to the integer.
Input
Input can be read from STDIN or taken as function arguments. Input is a string without newlines and a positive integer.
Ou...