How to install gcc in ubuntu and run first C program

How to install gcc in ubuntu and run first C program

Here c program demonstrated is simple interest calculator.

Following are quick steps to install gcc

Go to terminal

login as root :

type command : (requires active Internet connection)

Open gedit editor.

Type C Program & Save with .c extension. Download firstcprogram.c (31 downloads)

Compile C Program

To run program

output-firstprogram

output-firstprogram.c

This video shows simple steps to install gcc compiler on ubuntu 16.04 and run first C program for beginner.