Thread: Computer guessing a number

  1. #1
    Registered User
    Join Date
    Oct 2007

    Computer guessing a number

    Need help.

    Write a program that asks the user to input a number between 1 and 100 (inclusive), and then the computer attempts to guess that number.

    The program should make an initial guess of 50 at the correct answer, and then ask if that number is too high or too low. Based on the users response the program should make another guess.

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Please read the forum rules. If you have a specific question, we can help you, but until then, we expect you to actually try.

    Thread closed.
    All the buzzt!

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Random number + guessing game trouble
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-08-2007, 03:33 AM
  2. number guessing game, no idea where to start
    By karin in forum C Programming
    Replies: 9
    Last Post: 03-18-2004, 09:49 PM
  3. Number guessing game
    By rmathus in forum C++ Programming
    Replies: 2
    Last Post: 03-02-2004, 02:11 PM
  4. My number guessing game
    By The Gweech in forum C++ Programming
    Replies: 7
    Last Post: 06-22-2002, 09:03 AM
  5. Random Number problem in number guessing game...
    By -leech- in forum Windows Programming
    Replies: 8
    Last Post: 01-15-2002, 05:00 PM