Trò chơi đoán số

View as PDF

Points: 3 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Bài 10: Trò chơi đoán số (Do-while)

  • Mô tả: Giả lập máy tính chọn 1 số trong đoạn 1 đến 10, người chơi sẽ nhập số mình dự đoán vào, dừng nhập khi số đúng với số máy tạo ra.
  • Yêu cầu: In ra số lần nhập sai.
  • Dữ liệu ra: một số nguyên là số lần người chơi nhập sai

Comments

Most recent
Loading comments...

There are no comments at the moment.