how to run C Program in ubuntu

Step 1. Open text editor.

Step 2. Write a Program.

Step 3. Save the program with the extension .C .

Step 4. Open the terminal.

Step 5. Go to the file location. where your program save.

Step 6. Types gcc program name.c .

Example : gcc helloworld.c

If program compile with out error. it means your program ready to run. next step for run the program.

Step 7. Type   ./a.out

program run.

its done…..