aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • Software Engineering

How To Say “Hello World” In 23 Programming Languages

  • aster.cloud
  • February 27, 2023
  • 2 minute read

In the world of programming, “Hello World” is often the first program developers write when they start learning a new language. This simple program outputs the phrase “Hello, World!” to the screen, and while it may seem like a trivial exercise, it serves as a great starting point for anyone learning a new programming language. But with so many programming languages out there, have you ever wondered what “Hello World” looks like in all of them?

In this article, we’ll explore the top 23 programming languages and take a look at how to write a “Hello World” program in each one. Whether you’re an experienced developer or just starting out, this article will provide an interesting glimpse into the similarities and differences between some of the most popular programming languages used today.


Partner with aster.cloud
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

01. Python

print('Hello, world!')

02. C

#include <stdio.h>
int main() {
  printf("Hello, World!");
  return 0;
}

03 C++

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

04. Java

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

05. C#

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

06. Visual Basic

Imports System

Module Module1
  Sub Main()
    Console.WriteLine("Hello World!")
    Console.WriteLine("Press Enter Key to Exit.")
    Console.ReadLine()
  End Sub
End Module

07. JavaScript

console.log('Hello World');

08. SQL

CREATE TABLE helloworld (phrase TEXT);
INSERT INTO helloworld VALUES ("Hello, World!");
SELECT * FROM helloworld;

09. Assembly Language

global    _start
 
          section   .text
_start:   mov       rax, 1                  ; system call for write
          mov       rdi, 1                  ; file handle 1 is stdout
          mov       rsi, message            ; address of string to output
          mov       rdx, 13                 ; number of bytes
          syscall                           ; invoke operating system to do the write
          mov       rax, 60                 ; system call for exit
          xor       rdi, rdi                ; exit code 0
          syscall                           ; invoke operating system to exit
 
          section   .data
message:  db        "Hello, World", 10      ; note the newline at the end

10. PHP

<!DOCTYPE html>
<html>
<body>
 
<h1>My first PHP page</h1>
 
<?php
echo "Hello World!";
?>
 
</body>
</html>

11. Swift

print("Hello, world!")

12. Go

package main
 
import "fmt"
 
func main() {
    fmt.Println("hello world")
}

13. R

print("Hello World!")

14. Classic Visual Basic

Imports System
 
Module Module1
  Sub Main()
    Console.WriteLine("Hello World!")
    Console.WriteLine("Press Enter Key to Exit.")
    Console.ReadLine()
  End Sub
End Module

15. MATLAB

function y = hello_world 
%#codegen
y = 'Hello World!';

16. Ruby

puts "Hello World"

17. Rust

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

18. Scala

@main def hello() = println("Hello, World!")

19. Perl

#!/usr/bin/perl
use warnings;
print("Hello, World!\n");

20. Scratch

say Hello World!

21. (Visual) FoxPro

Messagebox("Hello World!",64)
? "Hello World"

22. SAS

proc ds2 libs=work;
data _null_;
 
  /* init() - system method */
  method init();
    declare varchar(16) message; /* method (local) scope */
    message = 'Hello World!';
    put message;
  end;
enddata;
run;
quit;

23. Objective-C

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
 
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    NSLog (@"Hello, World!");
    [pool drain];
    return YES;
 
}

Source: Cyberpogo

Read More  Top 10 Countries With The Best Programmers In The World

For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

aster.cloud

Related Topics
  • Hello World
  • programming languages
You May Also Like
View Post
  • Software Engineering

Embedded Swift Improvements Coming in Swift 6.3

  • November 22, 2025
Visual Studio Code
View Post
  • Software Engineering

Visual Studio 2026 is here: faster, smarter, and a hit with early adopters

  • November 12, 2025
View Post
  • Software Engineering

Introducing Google Gen AI .NET SDK

  • October 24, 2025
View Post
  • Software Engineering

Julia 1.12 Highlights

  • October 13, 2025
View Post
  • Engineering
  • Software Engineering

Development gets better with Age

  • October 9, 2025
View Post
  • Software Engineering

The Growth of the Swift Server Ecosystem

  • September 27, 2025
men with computer website information and chat bubbles vector illustration
View Post
  • Software
  • Software Engineering

What is an ISV (independent software vendor)?

  • August 27, 2025
aster-cloud-erp-bill_of_materials_2
View Post
  • Software
  • Software Engineering

What is an SBOM (software bill of materials)?

  • July 2, 2025

Stay Connected!
LATEST
  • Data center 1
    Data Sovereignty in Spain. It’s Not Just About the Law, It’s About Efficiency
    • June 3, 2026
  • 2
    Ink vs Pixels. What you miss versus what you are actually missing.
    • June 1, 2026
  • 3
    Banks race to patch new cyber vulnerabilities, and other cybersecurity news
    • May 25, 2026
  • pope-leo-xiv-cq5dam-1500.844 4
    Pope Leo XIV to Publish First Encyclical on Artificial Intelligence and Human Dignity on 25 May
    • May 22, 2026
  • 5
    Portfolio to Clients, and is Strengthened by Ongoing Project Glasswing Work
    • May 20, 2026
  • reMarkable Paper Pure 6
    Everything The reMarkable Paper Pure Actually Does
    • May 14, 2026
  • 7
    Scaling cloud and AI: Microsoft Azure’s commitment to Europe’s digital future
    • May 11, 2026
  • reMarkable Paper Pure 8
    The Quiet Revolution You Did Not Know You Needed
    • May 9, 2026
  • spain-qNO3XMQILTA-unsplash 9
    When the World Feels Unstable, Spain Remains the Calm. Here’s How to Get There Safely.
    • May 2, 2026
  • 10
    Why The CLOUD Act And Geopolitics Are Forcing A Data Sovereignty Reckoning In Europe
    • May 2, 2026
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • Anthropic Institute 1
    Introducing The Anthropic Institute
    • March 11, 2026
  • Red Hat OpenShift 2
    Red Hat Further Drives Digital Sovereignty for the AI Era with Red Hat OpenShift on Google Cloud Dedicated
    • April 21, 2026
  • Illustration of data storage 3
    The Splinternet Comes for European Supply Chains Why Fragmentation Is Now a Boardroom Problem
    • April 20, 2026
  • 4
    “A lot of other cloud vendors have been let off the hook”: Oracle leans hard on one-size-fits-all appeal of OCI for enterprises
    • March 30, 2026
  • 5
    Why channel partners must design for tech sovereignty
    • April 7, 2026
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.