Skip to content

This project is just for fun and explore—showcasing the diversity of programming syntax across the world of technology.

Notifications You must be signed in to change notification settings

mahmud-r-farhan/Hello-World

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍 Hello World in Every Programming Language

Welcome to the ultimate "Hello, World!" collection! This repository contains simple "Hello, World!" programs written in as many programming languages as possible.

This project is just for fun and explore—showcasing the diversity of programming syntax across the world of technology.

Languages Covered So Far (32)

  1. Python

  2. JavaScript

  3. C

  4. Java

  5. Rust

  6. Go

  7. Ruby

  8. PHP

  9. C++

  10. Bash

  11. Haskell

  12. Kotlin

  13. Swift

  14. Scala

  15. Perl

  16. Lua

  17. R

  18. TypeScript

  19. Objective-C

  20. Pascal

  21. Fortran

  22. Assembly (x86 NASM)

  23. Scheme

  24. Clojure

  25. Prolog

  26. F#

  27. OCaml

  28. Elixir

  29. Erlang

  30. VB.NET

  31. Julia

  32. Dart


🧾 All "Hello, World!" Code Snippets

1. Python

print("Hello, World!")

2. JavaScript

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

3. C

#include <stdio.h>

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

4. Java

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

5. Rust

fn main() {
    println!("Hello, World!");
}

6. Go

package main

import "fmt"

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

7. Ruby

puts "Hello, World!"

8. PHP

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

9. C++

#include <iostream>

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

10. Bash

echo "Hello, World!"

11. Haskell

main = putStrLn "Hello, World!"

12. Kotlin

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

13. Swift

print("Hello, World!")

14. Scala

object HelloWorld {
    def main(args: Array[String]): Unit = {
        println("Hello, World!")
    }
}

15. Perl

print "Hello, World!\n";

16. Lua

print("Hello, World!")

17. R

cat("Hello, World!\n")

18. TypeScript

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

19. Objective-C

#import <Foundation/Foundation.h>

int main() {
    @autoreleasepool {
        NSLog(@"Hello, World!");
    }
    return 0;
}

20. Pascal

program HelloWorld;
begin
  writeln('Hello, World!');
end.

21. Fortran

program hello
  print *, "Hello, World!"
end program hello

22. Assembly (x86 NASM)

section .data
msg db "Hello, World!",0Ah
len equ $ - msg

section .text
global _start
_start:
    mov edx, len
    mov ecx, msg
    mov ebx, 1
    mov eax, 4
    int 0x80
    mov eax, 1
    int 0x80

23. Scheme

(display "Hello, World!")
(newline)

24. Clojure

(println "Hello, World!")

25. Prolog

:- initialization(main).
main :- write('Hello, World!'), nl.

26. F#

printfn "Hello, World!"

27. OCaml

print_endline "Hello, World!";;

28. Elixir

IO.puts "Hello, World!"

29. Erlang

-module(hello).
-export([start/0]).
start() -> io:fwrite("Hello, World!~n").

30. VB.NET

Module HelloWorld
    Sub Main()
        Console.WriteLine("Hello, World!")
    End Sub
End Module

31. Julia

println("Hello, World!")

31. Dart

void main() {
  print('Hello, World!');
}


Mahmud


About

This project is just for fun and explore—showcasing the diversity of programming syntax across the world of technology.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published