+ 2
[Solved]
How do I make my code only output numbers "1-6" instead of "0-6" https://sololearn.com/compiler-playground/cygzcYirrYds/?ref=app
4 Antworten
+ 6
your code is right just two mistakes
1) Add = after first_die and second_die
2) remove ; before '+minValue'
Like this
short first_die= (rand() % (max_value - min_value )) + min_value ;
+ 2
It worked. I appreciate the help 🤝
+ 2
Khalil ,
Some people add [Solved] to the title so people know help is no longer needed.
+ 1
Thanks for letting me know