Character of word on a separate line

Write your question here.
how to sepaprate like Marry to
M
a
r
r
y


1
2
3
4
5
6
#include <iostream>

int main()
{
    std::cout << "M\na\nr\nr\ny" << std::endl;
}
https://ideone.com/GBIZuo
Topic archived. No new replies allowed.