Hello World Program in Different Programming Language

Hello World Program in Different Programming Language

Computers are brainless. They only do what we tell them. How do we tell a computer what to do? We use a programming language. The very first step when learning a new programming language is to display “Hello, World”. One of the first things that you are instructed to do when you start to learn to program is to write Hello World Program. In this blog we will learn how to write Hello World Program in Different Programming Language

There is no perfect programming language, they all offer something a little bit different from others, and there are hundreds of programming languages with new ones being created each and every day.

Let’s see “Hello World” in different programming languages.

C

#include <stdio.h>int main(void){    printf("hello, world\n");}

C++

#include <iostream>int main()
{
std::cout << "Hello, world!\n";
return 0;
}C#
using System;

class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
}
}

JAVA

class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Prints the string to the console.
}
}

PHP

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

Python

print("Hello World")

JavaScript

console.log("Hello World!");

This blog is written by Amit Kushwaha on Tyuts.

Read our other blog Types of Economic Activities and Human Activities and its Classification.

Follow us on Facebook, Twitter and Instagram.

Web Designer, WordPress Developer, Blogger https://tyuts.in