Difference between revisions of "Hello World Languages"
esse quam videri
m (Text replacement - "</csharp>" to "</syntaxhighlight>") |
m (Text replacement - "syntaxhighlight lang="csharp" line="1" " to "syntaxhighlight lang="csharp"") |
||
Line 25: | Line 25: | ||
}</java> | }</java> | ||
==csharp== | ==csharp== | ||
− | <syntaxhighlight lang="csharp | + | <syntaxhighlight lang="csharp">using System; |
namespace HelloClass | namespace HelloClass | ||
{ | { |
Latest revision as of 03:21, 9 February 2016
Contents
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