Thread: Help! Right Math, Wrong Output

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Registered User
    Join Date
    Mar 2004
    Posts
    536
    Quote Originally Posted by verd
    I forgot to include my new code, sorry:

    Code:
            scanf("lf", &exit);
    Change the above to

    Code:
           scanf("%lf", &exit);
    (Did you notice that the answers from your program do not agree with the sample run that you showed in your first post?)

    Regards,

    Dave
    Last edited by Dave Evans; 03-15-2005 at 09:38 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Something Wrong with my function in Linux!
    By Matus in forum C Programming
    Replies: 5
    Last Post: 04-30-2008, 10:00 PM
  2. 2d game
    By JordanCason in forum Game Programming
    Replies: 5
    Last Post: 12-08-2007, 10:08 PM
  3. Replies: 3
    Last Post: 09-14-2005, 09:20 PM
  4. a lil help.. prog's done but wrong output
    By gamer4life687 in forum C++ Programming
    Replies: 5
    Last Post: 09-13-2005, 02:32 AM
  5. Leap year program prints wrong output
    By Guti14 in forum C Programming
    Replies: 8
    Last Post: 08-24-2004, 11:56 AM