Input/Output

This is a discussion on Input/Output within the C Programming forums, part of the General Programming Boards category; I have just started to learn C programming and I'm stuck. I have to design and write a program which ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    7

    Input/Output

    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,335
    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.
    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. Help with input/output files
    By aldin176 in forum C++ Programming
    Replies: 5
    Last Post: 11-06-2006, 08:04 AM
  2. Input/Output Streams
    By mikeprogram in forum C++ Programming
    Replies: 6
    Last Post: 12-23-2005, 01:58 PM
  3. input/output
    By JCK in forum C++ Programming
    Replies: 4
    Last Post: 11-30-2002, 11:07 AM
  4. FILE input/output and ARRAY
    By poorman in forum C Programming
    Replies: 1
    Last Post: 03-05-2002, 03:17 PM
  5. Input/Output
    By PaulMelia in forum C Programming
    Replies: 3
    Last Post: 12-02-2001, 07:13 AM

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