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?

This topic contains 1 reply, has 2 voices, and was last updated by  iqus2015 9 months, 2 weeks ago.

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

    mhuffine
    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
    Keymaster

    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.