“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;
}
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;
}
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!");
}
}
4. Python Programming Language
Python is a high-level interpreted programming language developed by Guido Van Rossum in 1991.
print("Hello, World!")
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!");
}
}
}
6. JavaScript Programming Language
JavaScript is one of the most popular programming languages developed by Brendan Eich in 1995.
console.log("Hello, World!");
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!";
?>
8. Swift Programming Language
Swift is a general-purpose, multi-paradigm, compiled programming language developed by Apple in 2014.
print("Hello, world!")
9. Ruby Programming Language
Ruby is a dynamic, object-oriented, general-purpose programming language developed by Yukihiro Matsumoto in 1995.
puts "Hello, World!"
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!");
}
Top comments (1)
In gwion:
You might be interested by this blog post.