James D.

asked • 09/24/21

How do I make this while loop display 7 integers per line

const double MAXIMUM2 = 50;
i = 0;

while (i < MAXIMUM2)
{
RandNum = rand();
cout << RandNum << ' ';
i++;
}
{
cout << endl << endl;
}

1 Expert Answer

By:

Kathryn C. answered • 09/28/21

Tutor
4.9 (74)

Computer Science Graduate and Experienced Tutor/Instructor

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.