Hello, World!

Hello, World!

·

2 min read

This is my first blog so I thought I should start this blog by writing Hello, World! just like we do with the programming.

Hello, World!

There is no definitive answer to this question as it is unclear when the first "Hello, World!" program was written. However, it is generally believed that the first "Hello, World!" program was written by Brian Kernighan in 1972.

Hello, World! programs have been written in almost every programming language imaginable. As the first program that many people learn, it is generally simple and straightforward. However, some Hello, World! programs can be quite complex and creative.

One of the earliest Hello, World! programs were written by Tim Berners-Lee, the creator of the World Wide Web. His program simply displayed the text "Hello, world!" on a web page.

Hello, World! programs have been used to demonstrate the power of new programming languages, to test new hardware or software, and even to make political statements. In 2014, the European Organization for Nuclear Research (CERN) released a Hello, World! program that was used to discover the Higgs boson, one of the most important particles in the universe.

Below are some of the implementations of programming language to print Hello, World! alt text

C

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

CPP

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

Javascript

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

Python

print("Hello, World!")

Java

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

Julia

println("Hello, World!")

C#

using System;

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

GoLang

package main

import "fmt"

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

Verilog

module HELLO_WORLD(); 
  initial begin
    $display("Hello World");
    $finish; 
  end
endmodule

Hello, World! programs will continue to be written as long as there are new programming languages to learn and new hardware to test. They will always be a part of the computer world, and will likely remain one of the most popular ways to learn a new programming language.

That's the end of this article! Hope you liked it!