I will enclose every single detail happened inorder to make it easy for you, who are here in this forum, to understand where the actual error is.
IDE- CodeBlocks
Compiler- GNU GCC C compiler
OS- Windows 7 Home Premium 64bit
Below is the Source Code
Code: Select all
/*Integer addition Program*/
#include <stdio.h>
int main (void)
{
int integer1;
int integer2;
int sum;
printf("Enter First integer\n");
scanf("%d", &integer1);
printf("Enter Second Integer\n");
scanf("%d", & integer2);
sum = integer1+ integer2;
printf("Sum is %d \n", sum);
return 0;
}
It works up to taking the two integers as inputs and when I press the enter key the window suddenly disappears. This happens to every program that is written in this IDE in this computer.
Where can be the problem might be?



