hello, I must be having Alzheimer's for the moment because I just cant seem to remember how to put something in a row. Here's the problem that I am doing
/*Write a program that uses a loop to display the characters for ASCII codes 0
through 127, Display 16 characters on each line.*/
#include <iostream>
usingnamespace std;
int main()
{
char letter;
cout << " I will display the characters for ASCII codes 0 through 127.\n";
letter = 0;
for(int count = 0; count <= 127; count++)
{
cout << letter << " " << endl;
letter++;
}
return 0;
}
The only problem is putting 16 characters on a single line, please help