How To Input A Fraction: 2 1/2

This is a discussion on How To Input A Fraction: 2 1/2 within the C Programming forums, part of the General Programming Boards category; * * Write a complete program that reads a number in the following form * integer fraction (in the form: ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    3

    Question How To Input A Fraction: 2 1/2

    *
    * Write a complete program that reads a number in the following form
    * integer fraction (in the form: integer/integer)
    *
    * For example: a b/c as in 2 1/2
    *
    * and outputs the corresponding double value. Include full error checking
    */

    Only control structures allowed.....no array plez

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    You'll find an answer in the second post of this thread.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. For loop problems, input please.
    By xIcyx in forum C Programming
    Replies: 2
    Last Post: 04-22-2007, 03:54 AM
  2. I would love some input on my BST tree.
    By StevenGarcia in forum C++ Programming
    Replies: 4
    Last Post: 01-15-2007, 12:22 AM
  3. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 03:42 PM
  4. need help with some input
    By blindleaf in forum C Programming
    Replies: 2
    Last Post: 03-16-2003, 12:50 PM
  5. reducing a fraction
    By Unregistered in forum C Programming
    Replies: 4
    Last Post: 03-13-2002, 07:56 PM

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