Thread: Input/Output

  1. #1
    Registered User
    Join Date
    Oct 2003


    I have just started to learn C programming and I'm stuck. I have to design and write a program which reads a temperature in Fahrenheit from the keyboard, converts it to the equivalent value in Centigrade, and displays both values.

    I just don't from where to start. Do I need to state the conversion equation first? or I do I need to insert the valures? Any help would be welcome.

    Thank You.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Well apart from being discussed many times before (hint: press the search), the first step would be to prove to yourself that you can

    - ask the user for a temperature
    - read in a temperature
    - print that temperature to show you read it in correctly
    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. Help with input/output files
    By aldin176 in forum C++ Programming
    Replies: 5
    Last Post: 11-06-2006, 09:04 AM
  2. Input/Output Streams
    By mikeprogram in forum C++ Programming
    Replies: 6
    Last Post: 12-23-2005, 02:58 PM
  3. input/output
    By JCK in forum C++ Programming
    Replies: 4
    Last Post: 11-30-2002, 12:07 PM
  4. FILE input/output and ARRAY
    By poorman in forum C Programming
    Replies: 1
    Last Post: 03-05-2002, 04:17 PM
  5. Input/Output
    By PaulMelia in forum C Programming
    Replies: 3
    Last Post: 12-02-2001, 08:13 AM