My problem is simple the program asks for 2 numbers. Then takes the two numbers Price and Quantity and stores them in TotalRevenue. The program terminates before it asks for the second number Quantity. It won't let me enter it in. here's the code. There's no errors in the code that's one reason I can't figure it out. If someone has a clue as to what's going on it would be much appreciated. I've been trying to figure this out for two days now.
Code:#include <stdio.h> #include <stdlib.h> int main() { float Price = 0; int Quantity = 0; float TotalRevenue; printf("\nEnter Price: "); scanf("%.2f",&Price); printf("\nEnter Quantity: "); scanf("%d",&Quantity); TotalRevenue = Price * Quantity; printf("\nThe total revenue is: $%.2f\n",TotalRevenue); system("PAUSE"); return 0; }