Programming “Hello World” in 9 Different Languages

Programming Hello world in 9 different languages
Programming Hello world in 9 different languages

I will in this article show you have to write “Hello World” in 9 different languages.

We will be going through the following programming languages:

  • C
  • C++
  • C#
  • Python
  • Go
  • Java
  • Javascript
  • PHP
  • Swift

You can watch the below video to see that goes through the 9 programming languages.

Hello World in C programming

#include <stdio.h>

int main(void) {
   printf("Hello, World!");
   return 0;
}

Hello World in C++

#include <iostream>

int main() {
    std::cout << "Hello World!";
    return 0;
}

Hello World in C#

namespace HelloWorld{
    class Hello{
        static void Main(string[] args){
            System.Console.WriteLine("Hello, World!");
        }
    }
}

Hello World in Python

print("Hello, World!)

Hello World in Go

package main
import "fmt"

func main(){
	fmt.Println("Hello, World!")
}

Hello World in Java

class Main{
	public static void main(String[] args){
		System.out.println("Hello, World!");
	}
}

Hello World in Javascript

document.write('Hello, World!);

Hello World in PHP

<?php
echo "Hello, World!";
?>

Hello World in Swift

print("Hello, World!)