C


#include <stdio.h>

int main(void) {
    printf("Hello, world!\n");
    return 0;
}
	

C++


#include <iostream>

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

Python


    print("Hello, world!")
	

Shell


    echo 'Hello, world!'
	

HTML


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

JavaScript


    console.log('Hello, world!');
	

<script>
  alert('Hello, world!');
</script>
	

Java


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

PowerShell


Write-Host 'Hello, world!'
	

Groovy


println "Hello, world!"
	

more at mujahidk.com/slides


© 2024 Mujahid Khaleel. All rights reserved.

rev. 2024.02.24+aa334c5