Help writing a program

This is a discussion on Help writing a program within the C++ Programming forums, part of the General Programming Boards category; I need to write a program that asks the user for a number between 0 and 100. If the number ...

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    1

    Help writing a program

    I need to write a program that asks the user for a number between 0 and 100. If the number is between 1 and 9, the program will write out the word ONE DIGIT BIG! If it is between 10 and 99, write out the words TWO DIGITS BIG! if the user's number is outside the requested range write out the phrase OUT OF RANGE. I'm trying to write this program writing if-else/if-else control structure, not three individual if statemetns

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,592
    OK, so post your best effort so far.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing a program to make a calendar
    By Northstar in forum C Programming
    Replies: 17
    Last Post: 11-07-2007, 10:34 AM
  2. writing a calendar program help please!!!
    By Newbie2006 in forum C Programming
    Replies: 7
    Last Post: 11-20-2002, 06:36 PM
  3. Replies: 5
    Last Post: 11-19-2002, 08:36 PM
  4. Help with a file writing program
    By pritesh in forum C Programming
    Replies: 3
    Last Post: 11-11-2001, 12:56 AM

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