Question: Write a program that reads a word and uses a for loop to print each character of the word on a separate line. See Section
Write a program that reads a word and uses a for loop to print each character of the word on a separate line. See Section for an example on processing a character in a string using a for loop.
Ex: If the input is:
Enter a word: Harry
the output is:
H
a
r
r
y
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
