12345678
#include <iostream> using namespace std; int main() { int a = 6969; cout << "v\na\nr\ni\na\nb\nl\ne\n\na\n\ni\ns\n\n" << a << endl; }
v a r i a b l e a i s 6969
1234
6 9 6 9
1234567891011121314
#include <iostream> #include <string> using namespace std; void writeVertical( const string &str ) { for ( char c : str ) cout << c << "\n"; } int main() { int a = 6969; writeVertical( "variable a is " + to_string( a ) ); }