DEV Community

SEAN
SEAN

Posted on

Day 6: Review

Hey Hey Hey!

Today was a review of what we have learned so far, using ideas such as loops, strings, and conditionals.

The challenge was, given a string S of length N that is indexed from 0 to N-1, print its even-indexed and odd-indexed characters as 2 space-separated strings on a single line.

Here is my solution:
Alt Text

I found this to be quite tough, but thanks to numerous sources online I was able to work through it.

Top comments (1)

Collapse
 
adeena profile image
Adeena Grubb

You sure know your stuff, great work!