Menu

Hello World In Different Languages

Hello Guys,
Today we will learn how we can print "Hello World" in different languages. In this post, we will try more than 10 Languages.
So without wasting any time let's start.

C Language

#include 
 
int main() {
   printf("Hello World");
   return 0;
}

C++ Language

#include 

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

Scala Language

object HelloWorld extends App {
	printIn("Hello World")
}

Matllab language

disp('Hello World');

Dart Language

main(){
	print('Hello World');
}

Python language

print("Hello World")

Assembly Language

global _main
    extern _printf

    section .text
_main:
    push    message
    call    _printf
    add        esp, 4
message:
    db    'Hello World', 10, 0

Php 

echo "Hello World";

R Language

cat('Hello World')

Kotlin Language

fun main(args: Array){
	println("Hello World")
}

Java Language

/*package whatever //do not write package name here */

import java.io.*;

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

Go Language

/*package whatever //do not write package name here */

import java.io.*;

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

In this way, we can print "Hello World" or other text in a different language. There are a lot of languages are available which are not mentioned in this post.
Please let me know your favorite language in the comments. Also, let me know which topic you want to see in my next post.
Follow me on social media to be updated. 
Facebook   
Twitter
Youtube
Thanks

705
Search

Ads