C#:

1
2
3
4
static void Main(string[] args)
{
    Console.WriteLine("Hello, world");
}

Visual Basic:

1
2
3
Sub Main()
    Console.WriteLine ("Hello World!") 
End Sub

C++:

1
2
3
4
5
6
#include <iostream> 
using namespace std; 
void main() 
{
     cout << "Hello World!" << endl; 
}

Pascal:

1
2
3
begin
   WriteLn('Hello World'); 
end.

Java:

1
2
3
4
public static void main(String args[]) 
{     
   System.out.println("Hello World!"); 
}

Javascript:

1
2
3
<script type='text/javascript'>
   alert('Hello, World');
</script>

PHP:

<? echo 'Hello, world'; ?>

HTML:

1
2
3
4
5
6
7
8
<html>
<head>
<title>hello world</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>

Perl:

print "Hello Worldn";

XML:

<xml>Hello World</xml>

Python:

print "Hello, World!"

Ruby:

1
2
3
4
5
class Greet
  def greet(arg1)
    return "Hello world"
  end
end

D:

1
2
3
4
void main(string[] args) 
{
     writeln("Hello World"); 
}

Lisp:

(print "Hello World")

Fortran:

1
2
3
program hello
  print *, "Hello World!" 
end program hello

DOS:

1
2
@echo off
echo "Hello World!"

SQL:

SELECT 'Hello world!' AS greeting

3rd Фев 2017
Теги:
Загрузка Все права защищены © 2017 ИТ-Инженер (Краснодар)
 
把手拿回