Hello World Programs in various programming languages

Photo by Andrew Neel on Unsplash

Hello World Programs in various programming languages

ABAP

REPORT ZHELLO_WORLD.

WRITE: 'Hello, World!'.

Bash

#!/bin/bash

echo "Hello, World!"

BASIC

10 PRINT "Hello, World!"
20 END

C

#include <stdio.h>

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

C++

#include <iostream>

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

C

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

Clojure

(println "Hello, World!")

CoffeeScript

console.log('Hello, World!')

Dart

main(){
    print('Hello World');
}

Elixir

IO.puts("Hello, World!")

GO

package main

import "fmt"

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

HTML


<!DOCTYPE html>
<html>
<head>
<title>Hello, World!</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>

Java

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

JavaScript

console.log("Hello, World!");

Kotlin

fun main() {
  println("Hello, World!")
}

PHP

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

Python

print("Hello, World!")

Thank you for reading this. I hope you learned something new today. Have a great day! ๐Ÿ˜Š

ย