I use emulated Turbo C++ IDE 3.0 for development in C. I get the above mentioned error on when I run the following program:
#include<stdio.h>
#include<conio.h>
main()
{
int i,j,k;
char x;
do
{
printf("enter the number i: ");
scanf("%d",&i );
printf("enter the number j: ");
scanf("%d",&j);
k=i+j;
printf("Addition of given numbers :%d ",k);
printf("\n Do you to continue : ");
scanf("%c",&x);
} while(x=='y'||x=='Y');
getch();
}
It was successfully compiled without errors or warnings. At run time, the problem arises after the statement printf("\n Do you to continue : ");
.
When I enter a value for this, the error shows up. I tried in dev C++ but the problem prevails. I am using Windows 7 Ultimate.