This has happened more than once now.... perhaps I should show you some code:

For some reason. This bit of code was fine when it was in main() and when my entire program was in one file. But now, whenever the function containing this code is called. Instead of doing this:Code:char choice; float number1, number2; printf("Type in \'+\' for addition, \'-\' for subtraction,"); puts(" \'/\' for division, \'*\' for multiplication, and \'^\' for power"); printf("Please enter your choice: "); scanf("%c",&choice); printf("Now enter the two numbers IN ORDER e.g. 5 then 2 for 5-2: "); scanf("%f", &number1); scanf("%f", &number2);

It is falling through and outputting this:Type in '+' for addition, '-' for subtraction, '/' for division, '*' for multiplication, and '^' for power

Please enter your choice:pause for entry here

etc...

If someone could please explain what the deal is, I'd GREATLY appreciate it. It was/is the only error in my newly made calculator program.Type in '+' for addition, '-' for subtraction, '/' for division, '*' for multiplication, and '^' for power

Please enter your choice:No pause for choice entry, instead it continues to this:Now enter the two numbers IN ORDER e.g. 5 then 2 for 5-2:NOW it pauses for entry but everything is messed up because it skipped the first scanf for some reason