Hello World Languages

Jump to: navigation, search

Contents

Helloworld in several different programming languages

c

#include <stdio.h>
int main()
{
    printf("Hello, World.");
    return -1;
}

cpp

#include <iostream>
 
using namespace std;
 
void main()
{
   cout << "Hello World";
} 

java

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

csharp

using System;
namespace HelloClass
{
    class HelloWorld
    {
        public static void Main()
        {
            Console.WriteLine("Hello World!");
        }
    }
}

perl

print "Hello World\n";

OOP Class1