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 10 months, 3 weeks ago.
I can’t get the attached program to allow me to make keyboard entries. Help. What did I do wrong?
Not like printf(), Scanf() does not accept the formatting like “%.2lf”. By changing scanf(“%.2lf”, &amount) to scanf(“%lf”, &amount) will solve your problem.
You must be logged in to reply to this topic.