Home › Forums › Community Forum › Computer Programming › Why does this program not work correctly?
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.