Computer guessing a number

This is a discussion on Computer guessing a number within the C++ Programming forums, part of the General Programming Boards category; Need help. Write a program that asks the user to input a number between 1 and 100 (inclusive), and then ...

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    33

    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
    Posts
    8,892
    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!
    CornedBee

    "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, 08:49 PM
  3. Number guessing game
    By rmathus in forum C++ Programming
    Replies: 2
    Last Post: 03-02-2004, 01: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, 04:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21