Thread: Help writing a program

  1. #1
    Registered User
    Join Date
    Nov 2010

    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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

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, 11:34 AM
  2. writing a calendar program help please!!!
    By Newbie2006 in forum C Programming
    Replies: 7
    Last Post: 11-20-2002, 07:36 PM
  3. Replies: 5
    Last Post: 11-19-2002, 09:36 PM
  4. Help with a file writing program
    By pritesh in forum C Programming
    Replies: 3
    Last Post: 11-11-2001, 01:56 AM