0
I'm trying to get this piece of code to generate answer between 2rnumbers
int rnum1 = 1+(rand() % 100); int rnum2 = rnum1 + 5; answer = 1+(rand()%rnum2); cout << answer; I also tried while and do while loops to narrow it. do{ answer = 1+(rand()% rnum2); }while(answer < rnum1);
2 odpowiedzi
+ 2
what are you need? que necesitas? para ayudarte?
0
So, do you need any help? Do you have a question?