Funktionen

Programmcode

Programmcode in der Programmiersprache Java, mit automatischer Zeilennummerierung
1
2
3
4
5
class Hallo {
public static void main( String[] args ) {
System.out.println("Hallo Welt!");
}
}
Programmcode in der Programmiersprache PHP, mit automatischer Zeilennummerierung
1
2
3
<?php
echo "Hallo Welt!";
?>
Programmcode in der Programmiersprache C, mit automatischer Zeilennummerierung
1
2
3
4
5
6
7
#include <stdio.h>
#include <stdlib.h>
 
int main(void)
{
printf("Hallo Welt!\n");
}
Programmcode in der Programmiersprache C++, mit automatischer Zeilennummerierung
1
2
3
4
5
6
#include <iostream>
 
int main()
{
std::cout << "Hallo Welt!" << std::endl;
}
Programmcode in der Programmiersprache Visual Basic, mit automatischer Zeilennummerierung
1
2
3
4
5
Class Hallo
Sub HalloWelt
MsgBox("Hallo Welt")
End Sub
End Class
Programmcode in der Programmiersprache Delphi, mit automatischer Zeilennummerierung
1
2
3
4
5
{$APPTYPE CONSOLE}
 
begin
Writeln('Hello, world!');
end.
Programmcode in der Programmiersprache Perl (Programmiersprache: Andere), mit automatischer Zeilennummerierung
1
2
3
4
5
#!/usr/bin/perl
use strict;
use warnings;

print "Hello world!\n";
Programmcode in der Auszeichnungssprache HTML, mit automatischer Zeilennummerierung
1
2
3
4
5
6
7
8
<html>
<head>
<title>Hallo Welt!</title>
</head>
<body>
<p>Hallo Welt!</p>
</body>
</html>
Programmcode in der Auszeichnungssprache XML (hier: TEI Lite), mit automatischer Zeilennummerierung
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt><title>Hello world</title></titleStmt>
<publicationStmt><p>Publication information</p></publicationStmt>
<sourceDesc><p>Information about the source</p></sourceDesc>
</fileDesc>
</teiHeader>
<text>
<body>
<p>Hello World!</p>
</body>
</text>
</TEI>
Programmcode in der Auszeichnungssprache LaTeX, mit automatischer Zeilennummerierung
1
2
3
4
\documentclass{article}
\begin{document}
Hallo Welt!
\end{document}


Bisher wurde noch kein Kommentar abgegeben.