Question: I need this in c++ 2. Write a program that will remove all of the white spaces from a given input. HINT: getline and length
2. Write a program that will remove all of the white spaces from a given input. HINT: getline and length will be handy to use in this case. (4 points) Example: The input is "Hello World! It's great to be alive" Output is "HelloWorld!It'sgreattobcalive" EXTRA: Write the program using a "for" loop and repeat the program using a "while" loop or "do-while" loop. Both loops can be in the same program. (4 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
