thanks. yea, i figured out that it was still running.
Code:
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
//declared variables for choices, result, and inputed numbers
char operation;
double operand1;
double operand2;
double result;
printf("Enter the operation of your choice:\n"
"a. add s. substraction\n"
"m. multiply d. divide\n"
"q. quit"); /*displays the options for the user*/
scanf("%c", &operation);
return EXIT_SUCCESS;
}
right now, the only problem im having when i run it is the fact that it doesn't display the printf first. there is a blank line and i press enter and then it will display the printf and then it just terminates. Why is that?