This is my first C program. I am modifying an existing program to have input and when I added two lines of code to 1) print "Enter Purchase Amount" and 2) scanf to capture the data my other printf statement received a compile error that it has the wrong # of args in function call. Now this same printf statement compiled fine before I added the other two lines. How does adding lines cause other working lines to fail to compile?
printf("\nEnter Purchase Amount: "); scanf("%i", &iPurchase);]
Existing Code that is Failing (but worked before added code)
printf("\nTax for Del Mar is %.2f", fresult1);