I need to include user input (number) in the output of the TAB spaces. Example I ask the user:
cout << "Enter amount of spaces you would like (integer)" << endl;
cin >> n;
(n) I need to turn it into output, for example:
cout << n , endl;
and what prints on the screen will be the gaps former input 5 out the | _ | <~~~ there are five spaces.
Sorry if I canβt be clear, perhaps for this reason I couldnβt find the answer by looking at other people's questions.
Any help would be greatly appreciated.
source
share