i want to make a generic code that prints such output, mean user can enter any value +whole.
* * * * * * * * * * * * * * *
for 5
place 'space' after * in cout, it adjust all your sequence. mean cout << "* "; thats it.