Hello World Languages

From IAM MediaWiki Create Change
Jump to: navigation, search

Helloworld in several different programming languages

c

<c>#include <stdio.h> int main() {

   printf("Hello, World.");
   return -1;

}</c>

cpp

<cpp>#include <iostream>

using namespace std;

void main() {

  cout << "Hello World";

} </cpp>

java

<java>class HelloWorldApp {

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

}</java>

csharp

 1 using System;
 2 namespace HelloClass
 3 {
 4     class HelloWorld
 5     {
 6         public static void Main()
 7         {
 8             Console.WriteLine("Hello World!");
 9         }
10     }
11 }

perl

<perl>print "Hello World\n";</perl> OOP Class1