Thread: final exams

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    41
    Quote Originally Posted by Dave_Sinkula
    Why even have user input if you don't need it?
    It's a one-liner.

    The leftovers from some previous homework are not necessary.

    All you're being asked is to use %d and %f with printf, more or less.
    I pretty much figured that, but when I pass my values, I don't get anything that makes sense, i've tried %d %f %f, still isn't giving me anything correct

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    Post your attempt.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    41
    Quote Originally Posted by wonderpoop
    I pretty much figured that, but when I pass my values, I don't get anything that makes sense, i've tried %d %f %f, still isn't giving me anything correct
    I got it, i needed to take the maxnum out of the printf and put in firstnum, secnum, thirdnum

    so actually everything above is corred, even the %d, %f, %d, just not the maxnum in my printf

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cobwebs in head
    By jmonster in forum C Programming
    Replies: 14
    Last Post: 07-14-2007, 10:39 PM
  2. DirectX dll Final Debug and Final Retail
    By hdragon in forum Tech Board
    Replies: 0
    Last Post: 11-15-2005, 09:46 PM
  3. Final Exams Help
    By DeepFyre in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-15-2005, 06:16 PM
  4. reviewing for final exam, need help with this question
    By jlmac2001 in forum C++ Programming
    Replies: 12
    Last Post: 11-26-2003, 08:37 AM
  5. Final year project
    By khpuce in forum A Brief History of Cprogramming.com
    Replies: 22
    Last Post: 10-10-2003, 07:04 AM