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!"
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 :)
Top comments (4)
C#
Console.WriteLine("Hello World");
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 😄
Okay. Thanks for the article.
Welcome :)