rand() %10 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

rand() %10

how can i cout>>rand() % 10 ; in c++ ? i do the code and compiles perfectly but it does not appear on cmd. any ideas ?

17th Apr 2018, 9:45 AM
Dichonia
Dichonia - avatar
2 Answers
+ 2
replace ">>" with "<<"
17th Apr 2018, 9:48 AM
MO ELomari
+ 1
ohh my god so stupid my bad ! thank you ! !
17th Apr 2018, 9:51 AM
Dichonia
Dichonia - avatar