ok so im very new to programming in c and i have this program called "Open Watcom", or "Miracle C" that i use for my c
anyways to the point, when it comes to running the program, it runs it for the inputs, but when it gives the answer it closes itself
so what im asking is, how do i do to stop the screen from closing itself, so that i could see the answer, here is my program just in case
Code:
#include <stdio.h>
#include <math.h>
int main()
{
double t,temp,te,min,hr;
printf("how many hours since power failure: ");
scanf("%f",&te);
printf("how many minutes since power failure: ");
scanf("%f",&t);
min=t/60;
hr=min+te;
temp=((4*(hr*hr))/(hr+2))-20;
printf("The temperature after %f hour/s and %f minutes is at (celsius) %f",te,t,temp);
}