What is the output?
#include cstdlib
#include ctime
#include iostream
using namespace std;
int main()
{
srand((unsigned)time(0));
int ran;
for (int i = 0; i 5; i++)
{
ran = (rand() % 20) + 1;
cout ran;
}
}

Posted on by