Ralf:
First of all, thanks for replying. I apologize for not providing enough information. Here is my code. It works properly. I set breakpoint on "if" statement and I start debugger (Go/debug next to execute), once program gets two input and stops there, I step into each line. After it gets to last return, all buttons are grayed out and it appears it's hung. I try to close project (File, close Prolect), or even exit (File, exit), there is no effect on the IDS.
Please let me know what other information would be helpful to debug the issue and I will provide.
BTW, project options are set to 'full' for compiler and assembler and for linker 'Code view and COFF format'.
#include <stdio.h>
int main(void)
{
int hours;
double rate, pay;
printf ("How many hours did you work this week? ");
scanf ("%d",&hours);
printf ("What's your hourly rate? ");
scanf ("%lf",&rate);
/* calculate Pay */
if (hours >0)
{
pay = hours * rate;
printf ("Your pay for this week is $%.2lf \n", pay);
}
else
{
printf ("There is no need to create pay check for this week \n");
}
return 0;
}