-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use randint | ||
main | ||
var number=randint(0,100) | ||
output "我想好了在0-100间的一个数字,快来猜吧!\n" | ||
loop forever | ||
let int result | ||
output "你猜是: " | ||
inputto result | ||
if result == number | ||
output "猜对辣!" | ||
exit 0 | ||
end | ||
if result > number | ||
output "太大啦!" | ||
else | ||
output "太小啦!" | ||
end | ||
end | ||
end |