Howdy. I recently started using the Dev-C++ compiler, and ran into a bit of a problem. I'm new to the whole C programming thing, so bear with me
I made a simple Celsius to Fahrenheit conversion program, but I'm having an issue getting the out put to remain on the screen. It will flash briefly, and then exit when the program is finished. Any advice on how to keep the display showing on my screen once the program has finished running?
Code:
Code:#include <stdio.h> main(){ float fahr, cels; int lower, upper, step; lower = 0; upper = 20; step = 1; cels = lower; while( cels <= upper){ fahr = (9/5)*(cels + 32); printf("%f\t %6.1f\n", cels,fahr); cels = cels + step; } }