int main()
{ int num=2;
int i=0;
int user_num,x;
cout<<"enter a number(number>4)"<<endl;
cin>>user_num;
int a[100];
for (i=0;i<100;i++)
{
a[i]=0;
}
while(num<=user_num)
{
x=2;
while(x<=num)
{
if(num%x==0)
{
break;
}
x++;
}
if(x==num)
{
a[i]=num;
i++;
}
num++;
}
int b[100];
for (i=0;i<100;i++)
{
b[i]=a[i];
}
for (i=0;i<100;i++)
{
for(int j=1;j<100;j++)
{
if(a[i]+b[j]==user_num)
{
cout<<a[i]<<","<<b[j];
}
}
}
char f;
cin>>f;
return 0;
}
after entering the number no output appears & a dialog box appears mentioning that " Run-Time Check Failure #2 - Stack around the variable 'a' was corrupted