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

--

--

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