Difference between revisions of "Hello World Languages"

esse quam videri
Jump to: navigation, search
m (Text replacement - "syntaxhighlight lang="csharp" line="1" " to "syntaxhighlight lang="csharp"")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[category:OOP Class1]]
 
 
=Helloworld in several different programming languages=
 
=Helloworld in several different programming languages=
 
==c==
 
==c==
Line 26: Line 25:
 
}</java>
 
}</java>
 
==csharp==
 
==csharp==
<csharp>using System;
+
<syntaxhighlight lang="csharp">using System;
 
namespace HelloClass
 
namespace HelloClass
 
{
 
{
Line 36: Line 35:
 
         }
 
         }
 
     }
 
     }
}</csharp>
+
}</syntaxhighlight>
 
==perl==
 
==perl==
 
<perl>print "Hello World\n";</perl>
 
<perl>print "Hello World\n";</perl>
 
[[OOP Class1]]
 
[[OOP Class1]]
 +
 +
[[Category:IAM Classes]][[Category:Object Oriented Programming]]

Latest revision as of 03:21, 9 February 2016

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

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

perl

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