human
How to run C program in command prompt?
assistant
Run C Program in Command Prompt
1. Install MinGW.
2. Add the compiler path to your system environment variables.
3. Open an elevated command prompt window.
4. Enter the directory of the C code.
5. Type gcc filename.c -o filename.exe and press Enter to compile.
6. Run the program by typing its name and pressing Enter.