0

Can I declare the “rand” function as an integer??

3rd Apr 2018, 3:21 AM
Kyle
Kyle - avatar
2 ответов
+ 3
int x =(rand()%10)+1; Declares a variable named 'x', which is between 1 and 10.
3rd Apr 2018, 3:24 AM
Jordan Patterson
Jordan Patterson - avatar
3rd Apr 2018, 3:28 AM
Jordan Patterson
Jordan Patterson - avatar