I guess that was supposed to look a bit like this:
*****
*
*
*****
*
*
****
Use code or output tags as appropriate.
In this case I would just store the text in a string, with newline '\n' included where appropriate. Then output the string.
1 2
string five = "*****\n*\n*\n*****\n *\n *\n ****";
cout << five << endl;
If you wanted several such digits on the same horizontal line, it might be better to use an array to store the entire block of text before output.