Print Hello World in Different Programming Languages👨‍💻

Hello World! is the very first code from which every programmer starts their programming journey.

Right!

Hence, within this article, we are performing the same thing but, not in any specific language but, for different programming languages.

Let’s start our journey to print Hello World in different programming languages.

Hello World in different programming languages

1. Bash

Bash is a Unix shell and command language developed in the year 1989 by Brian Fox.

#!/bin/bash
echo "Hello World!"

2. C

C is a general-purpose and procedural programming language developed in the year 1972 by Dennis M. Ritchie.

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

3. C++

C++ is a general-purpose programming language developed by Bjarne Stroustrup which is an extension of the C language.

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

4. C#

C# (C-Sharp) is a programming language developed by Microsoft that runs on the .NET Framework. C# is used to develop web apps, desktop apps, mobile apps, games and much more.

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

5. HTML

HTML is the standard markup language for documents designed to be displayed in a web browser developed in the year 1993 by (WHATWG).

<html>
<body>
Hello World!
</body>
</html>

6. Java

Java is a class-based, object-oriented programming language developed in the year 1995 by James Gosling.

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

7. JavaScript

JavaScript is one of the core technology of web development and can be used on both the front-end and the back-end.

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

8. Matlab

MATLAB (an abbreviation of “matrix laboratory”) is a proprietary multi-paradigm programming language and numeric computing environment developed in the late 1970s.

Hello World!

9. Perl

Perl is a family of two high-level, general-purpose, interpreted, dynamic programming languages developed by Larry Wall.

print "Hello World!";

10. PHP

PHP is a general-purpose scripting language especially suited to web development.

<?php 
Echo "Hello World!";
?>

11. Python

Python is an interpreted, high-level and general-purpose programming language developed in the year 1991 by Guido van Rossum.

print("Hello World!")

12. Ruby

Ruby is an interpreted, high-level, general-purpose programming language developed in the 1990s by Yukihiro Matsumoto.

puts "Hello World!"

13. Swift

Swift is a general-purpose, multi-paradigm, compiled programming language developed by Apple Inc. and the open-source community, first released in 2014.

import Swift  
print("Hello World!")

👀Wrapping Up!

Well, it’s quite fun to print the HELLO WORLD in different programming languages however, it’s informative too.

In programming, there are numerous techniques to code a single program. I hope, you enjoyed this post and learned new languages with their basic syntax too.

Keep learning and code ahead. ENJOY CODING!👩‍💻

1 thought on “Print Hello World in Different Programming Languages👨‍💻”

Leave a Reply

Your email address will not be published. Required fields are marked *