June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
17
Task/Guess-the-number/HolyC/guess-the-number.holyc
Normal file
17
Task/Guess-the-number/HolyC/guess-the-number.holyc
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
U8 n, *g;
|
||||
|
||||
n = 1 + RandU16 % 10;
|
||||
|
||||
Print("I'm thinking of a number between 1 and 10.\n");
|
||||
Print("Try to guess it:\n");
|
||||
|
||||
while(1) {
|
||||
g = GetStr;
|
||||
|
||||
if (Str2I64(g) == n) {
|
||||
Print("Correct!\n");
|
||||
break;
|
||||
}
|
||||
|
||||
Print("That's not my number. Try another guess:\n");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue