编写一个猜数字游戏的程序:计算机会随机选择一个 1 到 100 之间的数字,用户尝试猜测这个数字,根据用户的输入给出提示("猜大了" 或 "猜小了"),直到用户猜对,然后输出猜测次数
如果用户输入的数字不在 1 到 100 范围内,要提示用户 "数字在 1 到 100 之间",同样记录一次猜测次数
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.
Using your Hydro universal account