FAQ | Contact Us  |  Register  |  Login


UC Davis Center for Integrated Computing and STEM Education (C-STEM) --- Research and Outreach

Why does this program not work correctly?

Home Forums Community Forum Computer Programming Why does this program not work correctly?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13344
    mdhuffine
    Participant

    I can’t get the attached program to allow me to make keyboard entries. Help. What did I do wrong?

    Matt

    Attachments:
    You must be logged in to view attached files.
    #13358
    iqus2015
    Member

    Hi Matt,

    Not like printf(), Scanf() does not accept the formatting like “%.2lf”. By changing scanf(“%.2lf”, &amount) to scanf(“%lf”, &amount) will solve your problem.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.