Documentos de Académico
Documentos de Profesional
Documentos de Cultura
- Fortran:
program hello
- Algol
print("Hello world!")
- Prolog
:- initialization(main).
- Ada
procedure Hello is
begin
Put_Line("Hello, world!");
end Hello;
- Samlltalk
#import <Foundation/Foundation.h>
@interface SampleClass:NSObject
- (void)sampleMethod;
@end
@implementation SampleClass
- (void)sampleMethod {
@end
int main() {
[sampleClass sampleMethod];
return 0;
- C++
#include <iostream>
int main() {
cout << "Hello, World!" << endl; // This prints Hello, World!
return 0;
- Java
- C#
using System;
namespace HelloWorldApplication {
class HelloWorld {
Console.WriteLine("Hello World");
Console.ReadKey();
- Ruby
- Python
- PHP
<html>
<head>
<title>Hello World</title>
</head>
<body>
</body>
</html>
- Perl
- JavaScript
<html>
<body>
<script>
<!--
document.write("Hello World!")
//-->
</script>
</body>
</html>
- Lua
print("Hello World!")
- Haskell
- Lenguajes compilados
Fortran, Algol, Prolog, Ada, Objective-c, C++, Java, C#, Lua, Haskell.
- Lenguajes interpretados