martes, 12 de mayo de 2015

Programacion Hola mundo en distintos lenguajes


SQL

SELECT 'HOLA MUNDO'
FROM DUAL;

Visual Basic

Private Sub Form_Load()
Msgbox "Hola Mundo"
End Sub

Visual Basic .net
Private Sub Form_Load() Handles Form1.Load
   Messagebox.show("¡Hola, mundo!")
End Sub
'modo consola.
Private Sub Main()
  Console.WriteLine("¡Hola, mundo!")
End Sub

En Php

 <?php echo 'Hola Mundo!'; ?>

JavaScript
<script type="text/javascript">
alert('¡Hola, Mundo');
</script>

Java
public class HolaMundo
{
public static void main(String[] args)
{
System.out.println("Hola Mundo");
}
}


HTML5
<!DOCTYPE HTML>
<html>
<head>
<title>Hola Mundo</title>
</head>
<body>
<header>¡Hola Mundo!</header>
<nav></nav>
<section>
<article>
</article>
</section>
<footer>
</footer>
</body>
</html>


hmtl
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Hola Mundo</title>
</head>
<body>
¡Hola Mundo!
</body>
</html>



Css
body:after {
content: 'Hola Mundo.';
}


Cobol
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO.
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
DISPLAY "Hola mundo".
STOP RUN.

c#
using System;
class MainClass
{
public static void Main()
{
Console.WriteLine("¡Hola mundo!");
}
}

C++

#include <iostream>
using namespace std;
void main()
{
cout << "Hola mundo\n";
}

No hay comentarios.:

Publicar un comentario