MinGW compiler Download link: https://sourceforge.net/projects/mingw/
Do the following steps for that How to run C\C++ in Visual studio code.
Step 1: Install code runner in the visual studio code extension
Step 2: Download MinGW and Install it.
Step 3: copy the path from C:\MinGW\bin
Step 4: In start menu search "Edit system Environmental variables"
Step 5: Paste the path in the System variables under PATH and click ok.
Step 6: Create new C file in Visual studio code.
Step 7: Type your C or C++ code run it in visual studio code.
For any doubts, you can comment or contact me anytime in Whatsapp
Whatsapp number: (+91) 6381286785