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!
Â