DEV Community

Cover image for Hello World in all the languages I know
Gourav Khunger
Gourav Khunger

Posted on

Hello World in all the languages I know

Hi, this is my first dev.to post and today I am going to write hello world in all the languages I know.

Bash

echo "Hello World!"
Enter fullscreen mode Exit fullscreen mode

C

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

C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  cout<<"Hello World!";
  return 0;
}
Enter fullscreen mode Exit fullscreen mode

HTML

<h1>Hello World!</h1>
Enter fullscreen mode Exit fullscreen mode

Java

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

JavaScript

document.write('Hello, World!');
Enter fullscreen mode Exit fullscreen mode

PHP

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

Python

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

QBASIC

PRINT "Hello, world!"​
Enter fullscreen mode Exit fullscreen mode

So this was the basic Hello World program in the languages I knew(this does not include frameworks like Flutter, Android, etc). I am not a master in all these languages, but I can understand most of them. Thanks for reading :)

Top comments (4)

Collapse
 
saint4eva profile image
saint4eva

C#
Console.WriteLine("Hello World");

Collapse
 
gouravkhunger profile image
Gourav Khunger

Yeah, I came to know basic C# when I started Game Developement in Unity, but could not understand much, so just left it. I did not add it up here in this list, because just knowing how to print a line, does not prove you know the core concepts of the language, so I cut it off 😄

Collapse
 
saint4eva profile image
saint4eva

Okay. Thanks for the article.

Thread Thread
 
gouravkhunger profile image
Gourav Khunger

Welcome :)