Email: rakesh@xamnation.com         Phone/Whatsapp: +91 9988708161
programming languages comparision

Printing Hello world in most popular programming languages

Hello Programming Enthusiasts,

You have been doing programming or some of you must be interested in starting programming. In this article, we will show you how to print “Hello World”, which is by default first program in any programming language.

We are following list of programming list, as decided by top programming languages survey by Github 2020.

Note: If you are not finding your preferred programming language in this list, kindly share us your preference. We will update this list. You can even write down your syntax too.

How to print Hello world in top programming languages

Top programming languages of 2020

popular programming languages

Source: Github programing language survey 2020

Do you know python language is classified as one of the most simplest and easiest programming language to learn. See our python language tutorial for more details.

Printing Hello World in Python

Python is #1 popular language in the world. Python is widely used in Data Science and Machine Learning, web scrapping and web applications. We will start our Hello World with this programming language.

hello world in python

How to print hello world in python

  1. Download and install latest version of Python from its official website
  2. Set up environment variable
  3. Download and install text editor like Sublime Text Editor, Atom or Pycharm.
  4. Open your text editor
  5. Create new file with name: helloworld.py
  6. Type in this file:

print(“Hello World”)

  1. Build project
  2. You can check your output in the console

python programming

Do you know python language name is inspired from Monty Python comedy series. Check our python language course now.

Printing Hello World in Java

Java is ranked #2 among all popular languages. Java is widely used in web and mobile application, Enterprise software, finance applications and Big Data. Let’s find out how to print Hello world in Java.

Hello world in java

How to print hello world in Java

  1. Download and installed latest version of Java Development Kit from its official website
  2. Download and installed IDE like Eclipse or Netbeans. You can also use text based editor like Atom, Sublime Text Editor, Notepad++.
  3. Create a new file with name – Helloworld.java
  4. Use following code in your java file

Class Helloworld{

public static void main(String args[]){

System.out.println(“Hello World”); 

}}

  1. Save the file.
  2. Open command prompt, and go to location where Helloworld.java is saved
  3. Write following code to compile the code:

javac Helloworld.java

  1. Write following code to print hello world in java:

javaHelloworld

Printing Hello World in Javascript

Javascript is third popular programming language in world. Javascript is programming language in web, and widely used in handling browser/client side functionality in web applications.

Hello world in java script

How to write hello world in javascript

  1. Unlike other programming language, you do not need to install any software.
  2. You need to have text editor like Notepad++, Sublime Text editor, Atom etc
  3. Write your first code in Java script

<script>

console.log(“Hello World”);

alert(“Hello World”);

</script>

  1. Save the file as helloworld.html
  2. Run this program in any browser. For example Chrome. You can use inbuilt function of text editor, or you can drag drop file to browser tab.
  3. You can see the pop up message, and also console log in browser.

Printing Hello World in C#

C# is ranked 4 in popularity list. Its usage includes developing window and desktop applications.

Hello world n C#

How to print hello world in C#

  1. Download and install latest version of visual studio
  2. Open and create new project
  3. Create new file helloworld.cs
  4. Use following code to print hello world:

using System;

namespaceHelloWorldApplication {

classHelloWorld {

static void Main(string[] args) {

Console.WriteLine(“Hello World”);

Console.ReadKey();

      }

   }

}

  1. Save and open command line tool
  2. Type cs
  3. Typehelloworldand see the output

Printing Hello World in Php

Php is no 5 popular programming language among all programming languages. Php is widely used in websites. Its most popular use is in WordPress, which is open source CMS. More than half of websites in world are running on WordPress.

php programming

How to write hello world in Php

  1. Download and install latest version of Php from its official website
  2. Download and install Xampp or Wamp which are used to set up local server
  3. Go to htdocs folder in Xampp, and create a project(FirstProject)
  4. Open text editor like Notepad++, Sublime text editor, Atom
  5. Create a file – helloworld.php
  6. Write following code:

<?php

echo “Hello World” ;

?>

  1. Start your local server by going to Xammp control panel, and starting Apache
  2. Go to your browser, and type:

localhost/FirstProject/helloworld.php

  1. You will see Hello World on browser

Printing Hello World in C/C++

C and C++ are usually initial language learned by every computer science student. C/C++ is ranked no 6 in popularity list.

c programming language

How to write hello world program in C

  1. Download and installed C compiler and editor. For example- Intel C++ complier.
  2. Write following code:
  1. #include<stdio.h>
  2. int main() {
  3. printf(“Hello, World!”);
  4. return0;
  5. }
  1. Compile and run the program
  2. You will see output in console

Printing Hello World in R

R is a popular programming language in data science and machine learning. Overall, R ranked #7 in popularity list.

R programming

How to write hello world program in R

  1. Download and install latest version R in your computer
  2. Open text editor like Rstudio, Sublime text, Vim
  3. Create file helloworld.r
  4. Write following code:

print(“Hello World”)

  1. Run the program

Do you know python pandas offers data structures and operations for manipulating numerical tables and time series. See our python pandas tutorial for more details.

Conclusion

This article to be meant for beginner in programming language. We hope that it will help you in creating your first program. We are looking forward to hear from your about your inputs on how you wrote our first program.

If you are looking for online course in programming language, you can check our programming languages course section. You can also send us mail to info@xamnation.com

Leave a Comment

Your email address will not be published. Required fields are marked *