0
19th Mar 2018, 10:29 AM
Guy293
Guy293 - avatar
4 Respuestas
+ 11
Time limit is imposed to allow the equitable sharing of server resources. You may run this code on your computer.
19th Mar 2018, 10:36 AM
jay
jay - avatar
+ 11
do{ guess = (rand()%1); guessTimes++; } while (guess != pin[y]); this section of the code would probably take too long. You could probably limit the rand function to operate between 0 and 9 as pin[y] should only take a single integer value (or I am misreading your intent) But I am unsure if it will still execute in a short enough period
19th Mar 2018, 10:42 AM
jay
jay - avatar
+ 5
You posted this question twice, please remove one https://www.sololearn.com/discuss/1154209/?ref=app
19th Mar 2018, 11:04 AM
David Akhihiero
David Akhihiero - avatar
0
@jay Yea i got it..... I mean by looking at the code i made mistakes?
19th Mar 2018, 10:39 AM
Guy293
Guy293 - avatar