i need to write a program that ouputs any five positive integers to the screen?
for (int i = 1; i <= 5; i++)
cout << rand () // what goes here?
usually when there's a range (lets say any 3 digit number) i usually do it like this
cout << rand() % 900 + 100 << endl;
but i need to include any positive integer (so no range??) in my code. how do i do it?
Also what would you do to print any negative number?