making the output in one column
i have problem adjusting to make the output in one column. Can anyone give me on how to make the output arranged in columns?
Thanks
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
#include <iostream>
using namespace std;
int main()
{
char array[13] = {'H', 'e', 'l', 'l', 'o', ',', ' ', 'w', 'o', 'r', 'l', 'd', '\0'};
int i;
for (i = 1; i <= 13; i++)
{
cout<< array[i] <<"\n";
}
}
|
Topic archived. No new replies allowed.