Print a String in wave pattern
Given a string, you need to transform this string in the form of a wave pattern Examples: Input : GeeksforGeeks, 2 Output : G e s o G e s e k f r e k Input : GeeksforGeeks, 4 Output : G o s e f r k e s G e k e C/C++ Code // CPP program to print wave pattern // of a given string // This is a modified