Hello World in 10 Different Programming Languages

hello world namaste

Writing Hello World is a custom I dare not to break as I start off with this brand new blog. Here are Hello World programs in ten different programming languages.

1. The C
Not only C can be termed as mother of most high level languages but it remains relevant till date. It is undoubtedly the most popular language of all times.

#include <stdio.h>
void main() {
    printf("Hello World!");

2. C ++
Bjarne Stroustrup’s language gave programmers a new world view with Object Oriented Programming.

#include <iostream>
void main() {
   cout << "Hello World!";

3. UNIX Shell
Shell is like a Ninja’s sword! You need to see this.

echo "Hello World!"

4. Java
Java is perhaps the only ubiquitous multi platform language we have seen.

public class HelloWorld {
    public static void main(String args []) {
       System.out.print("Hello World!");

5. Hello World in C#
C# is a great programming language based on C from Microsoft.

public class HelloWorld {
    static void Main() {
       System.Console.Write("Hello World!");

6. JavaScript
JS shaped platforms which employ half of the Indian programmers.

alert ("Hello World");

7. PHP
PHP makes great front-ends for web applications.

echo "Hello World!";

8. Python
My favourite! Python is simple, readable and powerful.

print ('Hello World!')

When you cannot think in SQL, you use PL/SQL!

    DBMS_OUTPUT.put_line ('Hello World!');

10. Arduino C
Arduino propels IoT development with affordable open source prototyping boards for everyone. Arduino-C is indeed C!

// setup () function runs only once
void setup() {
  // Use on-board LED as output
// loop function runs forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on
      delay(1000);                       // wait a sec (or 1000 ms)
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off
      delay(1000);                       // wait a sec (or 1000 ms)

So this is how journey at iDevji starts, I hope it will create value, may be little, for everyone specially my students!


Notify of