Write a program that reads a word and prints each character of the word on a separate line. Use a for loop and a while loop and execute it once.

A) Java
B) Python
C) C++
D) JavaScript