Sia B.

asked • 11/10/20

(C++) How to make variable vertically?

So I know how to make text vertically but the thing is I don't know about the variable here's the example.

#include <iostream>

using namespace std;


int main()

{

    int b = 6969;

    cout << "v\na\nr\ni\na\nb\nl\ne\n\nb\n\ni\ns\n\n" << b << endl;

}


The thing is I want to make variable b vertically and the output is like this:

v

a

r

i

a

b

l

e


b


is


6

9

6

9

// not 6969

1 Expert Answer

By:

Patrick B. answered • 11/11/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Sia B.

thank you very much, I appreciate it.
Report

11/11/20

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.