DEV Community

Cover image for "Hello, World!" in 10 different Programming Languages.
Jeevan Chandra Joshi
Jeevan Chandra Joshi

Posted on

"Hello, World!" in 10 different Programming Languages.

“Hello, World!” is a very first program from which every programmer begins their programming journey.


Now, We also start our journey by writing “Hello World” in 10 different programming languages.

1. C Programming Language

C is a general-purpose, procedural programming language developed at AT&T bell labs by Dennis Ritchie in 1972.

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

2. C++ Programming Language

C++ is a powerful general-purpose programming language developed by Bjarne Stroustrup in1979.

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

3. Java Programming Language

Java is a high-level, modern, object-oriented programming language developed by James Goslin in 1995.

public class Program
{
    public static void main(String[] args)
    {
        System.out.print("Hello, World!");
    }
}
Enter fullscreen mode Exit fullscreen mode

4. Python Programming Language

Python is a high-level interpreted programming language developed by Guido Van Rossum in 1991.

print("Hello, World!")
Enter fullscreen mode Exit fullscreen mode

5. C# Programming Language

C# is an elegant object-oriented programming language developed by Microsoft in 2000.

using System;
namespace Hello
{
    class World
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
        }
    }
}
Enter fullscreen mode Exit fullscreen mode

6. JavaScript Programming Language

JavaScript is one of the most popular programming languages developed by Brendan Eich in 1995.

console.log("Hello, World!");
Enter fullscreen mode Exit fullscreen mode

7. PHP Programming Language

Hypertext Preprocessor (PHP) is a free, highly popular, open source scripting language developed by Rasmus Lerdorf in 1995.

<?php
    echo "Hello, World!";
?>
Enter fullscreen mode Exit fullscreen mode

8. Swift Programming Language

Swift is a general-purpose, multi-paradigm, compiled programming language developed by Apple in 2014.

print("Hello, world!")
Enter fullscreen mode Exit fullscreen mode

9. Ruby Programming Language

Ruby is a dynamic, object-oriented, general-purpose programming language developed by Yukihiro Matsumoto in 1995.

puts "Hello, World!"
Enter fullscreen mode Exit fullscreen mode

10. Kotlin Programming Language

Kotlin is a statically-typed programming language that runs on the Java virtual machine developed by JetBrains in 2011.

fun main(args: Array<String>)
{
    print("Hello, World!");
}
Enter fullscreen mode Exit fullscreen mode

Happy Coding ~G1

Top comments (1)

Collapse
 
fennecdjay profile image
Jérémie Astor • Edited

In gwion:

<<< "Hello, World!" >>>;
Enter fullscreen mode Exit fullscreen mode

You might be interested by this blog post.