369 TESLAKALVIYOGI
Page 5 of 30

First Program

Hello World in all 4 languages

</> logic
1

Concept Meaning

The first program usually prints a simple message. It helps students understand how output works.

2

Real-Life Analogy

Like saying your first word in a new language, Hello World is the first step in coding.

3

Expected Output

Hello World
4

Common Mistake

Do not miss quotes around text values.

Same Logic • Different Syntax

Code in 4 Languages

JavaScript
console.log("Hello World");
C++
#include <iostream>
using namespace std;
int main(){cout<<"Hello World";return 0;}
Python
print("Hello World")
PHP
<?php echo "Hello World"; ?>

Memory Tip

First run. Then change the message and test again.