PALS_CS_2018

Lesson 4 - Hello World

Index

Follow Instructions

Please use previous knowledge and this instructional to get to the right setup for this lab session.

Open Cmder

Enter the following commands and remember to replace ‘X’ with your assigned user number:

ssh UserX@10.185.1.169
yes
1234
git clone https://github.com/AnirudhPal/PALS_C_Hello_World.git
cd PALS_C_Hello_World
make
./hello

C Hello World

A Hello World program is generally the simplest and first program a programmer writes in a new programming language. We are going to write such a program for the programming language C.

Enter the command:

vim hello.c

Use arrow keys to get to line 7.

Press i.

Type printf(“Hello World!!”);

Press ESC.

Type :wq.

Enter the following commands:

make
./hello

Python Hello World

We will do the same for the programming language Python.

Enter the command:

python

Type print(“Hello World!!”).

Here is a video showing this process: