Gourav Khunger
Gourav Khunger

Gourav Khunger

Hello World in the languages I know

Hello World in the languages I know

Gourav Khunger
ยทNov 4, 2020ยท

2 min read

Subscribe to my newsletter and never miss my upcoming articles

Play this article

Hi, this article is imported from my first dev.to post. I am going to write hello world in the languages I can.

English ๐Ÿ˜‚

Hello World

Okay jokes aside, I will do it in the programming languages I can.

Bash

echo "Hello World!"

C

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

C++

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

int main() {
  cout<<"Hello World!";
  return 0;
}

HTML

<h1>Hello World!</h1>

Java

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

JavaScript

document.write('Hello, World!');

PHP

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

Python

print("Hello World!")

QBASIC

PRINT "Hello, world!"โ€‹

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 :)

Did you find this article valuable?

Support Gourav Khunger by becoming a sponsor. Any amount is appreciated!

See recent sponsors |ย Learn more about Hashnode Sponsors
ย 
Share this