Hello World Program in Different Programming Language

Hello World Program in Different Programming Language

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!");

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What you should know before learning to code

Learn HTML 5 (Best HTML 5 Tutorials for Beginners)

I posted a new photo to Facebook https://t.co/VobDb5hnWa

Creating Machine Learning model inside Docker Container

Learn and Master Python in a Month

Bedrock Extinct Warriors

LeetCode 53. Maximum Subarray

Parcelable in Kotlin? Here comes Parcelize

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Amit Kushwaha

Amit Kushwaha

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

More from Medium

Basics of JavaScript

Journey with STM32 Nucleo Board: 1. Blinking a LED using the C program

Forget about the console.log() and start debugging like a pro

042122 TIL Ajax & Jquery