Question: Given a string, return a new string made of every other char starting with the first, so Hello yields Hlo. stringBits(Hello) Hlo stringBits(Hi) H stringBits(Heeololeo)
Given a string, return a new string made of every other char starting with the first, so "Hello" yields "Hlo".
stringBits("Hello") "Hlo" stringBits("Hi") "H" stringBits("Heeololeo") "Hello"
Must work the following problem using a while loop or do while.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
