I'm programming in C and I download code block IDE because it's easier to use. As you know, the minimal code in C is to write: Hello World in a CMD window. When I try to launch the program via code block, it works but when I open the .exe
file directly, it open and close quickly. Can someone explain me why?
#include <stdio.h>
int main() {
int age = 0;
printf("how old are you?");
scanf("%d", &age);
printf("You are %d", age);
getchar();
return 0;
}