Hi, I'm a beginner and just started Turbo C
I wrote this program in the editor
main()
{
float years, days;
printf ("Please type your age in years:");
scanf ( "%f", &years);
days = years * 365;
printf ("You are%.1f days old.\n", days);
}
I then run the program and it asks me my age in years. I input my age and when I press enter to tell me my age in days it goes from the DOS window back to the turbo C editor, i then press Alt+ F5 to go back to the DOS screen and it then tells me my age in days
So the program is working but my question is-
Why does it jump back to the turbo c window when I press enter to enter my age? Is this wrong?
Thanks.