Well ever other operator works instead of divide works. When I add multiply or subtract I get the correct results but when I divide I get some answer that aint numbers, works or even english.
Code:else if(check == '/') { printf("Enter the first number.\n"); scanf("%d", &num1); fflush(stdin); printf("Enter the second number.\n"); scanf("%d", &num2); fflush(stdin); printf("The answer is: %f", num1 / num2); }