Hello,
I have this for loop here, and everything is great except I can't figure out how to display 3 numbers per line instead of all number on one line. Can anyone help? Thanx!
#include <iostream>
using namespace std;
int main( )
{
int x;
cout << "Numbers between 5 and 12 (3 numbers per line)are:\n";
for (x = 5; x <= 12; x++)
{
cout << x << " ";
}
cout << endl << endl;
return 0;