Hai I have written this code.Its working fine when i execute in pelles.But when i open .exe file After i enter radius it is closing with in a second.Please help.
MY CODE IS
#include <stdio.h>
#define PI 3.1419
int main()
{
float area , radius ;
printf("Enter the radius of the circle in cms.");
scanf("%f",&radius);
area = PI * radius * radius;
printf("The area of a circle is %f sq.cms.",area);
printf("A Progrramm devoloped by Nishanth. ");
printf("Thank you for using ");
printf("Press Esc to exit");
return 0;
}