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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!