Difference between revisions of "Hello World Languages"
esse quam videri
Gary.kupczak (talk | contribs) |
m (Text replacement - "<csharp>" to "<syntaxhighlight lang="csharp" line="1" >") |
||
Line 25: | Line 25: | ||
}</java> | }</java> | ||
==csharp== | ==csharp== | ||
− | <csharp>using System; | + | <syntaxhighlight lang="csharp" line="1" >using System; |
namespace HelloClass | namespace HelloClass | ||
{ | { |
Revision as of 18:20, 25 January 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
<syntaxhighlight lang="csharp" line="1" >using System; namespace HelloClass {
class HelloWorld { public static void Main() { Console.WriteLine("Hello World!"); } }
}</csharp>
perl
<perl>print "Hello World\n";</perl> OOP Class1