A c++ code to generate four digit random number with no same digits | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

A c++ code to generate four digit random number with no same digits

for example 3619 acceptable 4772 not acceptable

12th Jul 2018, 10:14 AM
Ezedin Ali
3 Answers
0
I don't know C++. I know Java. I suppose that it will be easy to do so you can try by yourself
12th Jul 2018, 10:16 AM
Ilias
Ilias - avatar
0
https://code.sololearn.com/cbFvTe5wSITG/?ref=app not that hard. also submit challenges to the lesson factory please
12th Jul 2018, 10:40 AM
hinanawi
hinanawi - avatar
0
use rand function
26th Jul 2018, 4:13 AM
Eyob Awoke