ASP-JavaScript |
Hello World for Microsoft ASP (in JavaScript)
<%@ language="javascript" %>
<html><body>
<%
Response.Write('Hello World!');
%>
</body></html>
ASP-C#
<!-- Hello World for ASP.NET using C# -->
<% @ Page Language="C#" %>
<% ="Hello World!" %>
ASP.NET
<!-- Hello World in ASP.NET -->
<%= "Hello World!" %>
C#
//Hello World in C#
class HelloWorld
{
static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}
C
//Hello World in C
main( ) {
printf("hello, world");
}
}
Delphi
// Hello World in Delphi
Program Hello_World;
{$APPTYPE CONSOLE}
Begin
WriteLn('Hello World');
End.
HTML
<HTML>
<!-- Hello World in HTML -->
<HEAD>
<TITLE>Hello World!</TITLE>
</HEAD>
<BODY>
Hello World!
</BODY>
</HTML>
Java
// Hello World in Java
class HelloWorld {
static public void main( String args[] ) {
System.out.println( "Hello World!" );
}
}
JSP
<!-- Hello World for Java Server Pages -->
<%@ page language='java' %>
<%="Hello World!" %>
Java-Swing
class HelloWorldSwing {
static public void main(String args[]) {
javax.swing.JOptionPane.showMessageDialog(null,"Hello world!");
}
}
JavaScript
<html>
<body>
<script language="JavaScript" type="text/javascript">
// Hello World in JavaScript
document.write('Hello World');
</script>
</body>
</html>
LaTeX
% Hello World! in LaTeX
\documentclass{article}
\begin{document}
Hello World!
\end{document}
MATLAB
% Hello World in MATLAB.
disp('Hello World');
OCaml
(* Hello World in OCaml *)
print_string "Hello World!\n";;
PHP
<?php
// Hello World in PHP
echo 'Hello World!';
?>
VisualBasic.NET
'Hello World in Visual Basic .NET (VB.NET)
Imports System.Console
Class HelloWorld
Public Shared Sub Main()
WriteLine("Hello, world!")
End Sub
End Class
VisualBasic6
' Hello World in Visual Basic 6
Private Sub Form_Load()
Print "Hello World"
End Sub
Sem comentários:
Enviar um comentário