Since there are many different ways to compile & run a complete C program but all that is required is a C compiler.
We will recommend you to use TURBO C IDE which is the oldest IDE for C programming and It is freely available over the internet and is good for a beginner.
Step 1:- Open up the TURBO C IDE(Integrated Development Environment) and click on File and then click on New.
Step 2 :- Now Write the above example as it is
Step 3: Now Click on compile tab or press Alt+f9 from keyboard to compile the code
Step 4 :- And now Click on Run tab or press Ctrl+f9 from keyboard to run the code
Step 5 :- Finally here is the Output