Дорогие хабравцы!
С Новым Годом! Желаю Вам творческих успехов, карьерного, интеллектуального и духовного роста!
Хочу сделать вам небольшой подарок: С Новым годом на более чем 150 языках программирования!
А+
a Happy New Year in A+
‘Happy New Year’
АБАП
Report Happy_New_Year.
Write: "Happy New Year".
АВС
АВС
WRITE “Happy New Year”
АДА
АДА
-- Happy New Year
with Text_IO;
use Text_IO;
procedure HappyNewYear is
begin
Put_Line("Happy New Year");
end HappyNewYear;
Алеп
Алеп
# Happy New Year in Aleph
println "Happy New Year"
Водоросли
Водоросли
printf("Happy New Year\n");
АЛГОЛ
АЛГОЛ
'begin'
outstring(2, 'Happy New Year');
'end'
Амос
Амос
PRINT "Happy New Year"
АПЛ
АПЛ
‘Happy New Year’
ASP (страница активного сервера)
ASP (страница активного сервера)
<%@ language="javascript" %>
<html><body>
<%
Response.Write('Happy New Year!');
%>
</body></html>
АССЕМБЛЕР (Intel 80x86; DOS,MASM)
АССЕМБЛЕР (Intel 80x86; DOS,MASM)
.
MODEL tiny
.
CODE
ORG 100h
HAPPY PROC
MOV AH,09h
LEA DX,msg
INT 21h ;Display Happy New Year
MOV AX,4C00h ;Exit to DOS
INT 21h
HAPPY ENDP
msg DB 'Happy New Year$'
END HAPPY
ок
ок
BEGIN {
print "Happy New Year"
}
БАЗОВЫЙ
БАЗОВЫЙ
PRINT "Happy New Year"
БКПЛ
БКПЛ
GET "LIBHDR"
LET START () BE
$(
WRITES ("Happy New Year!*N")
$)
БЕТА
БЕТА
(#
do
'Happy New Year' -> putline
#)
Синий
Синий
class HappyNewYear is
==
== HappyNewYear-Klasse
==
interface
creation is
== Erzeugt das HappyNewYear-Objekt
do
printIt
end creation
routines
printIt is
== prints Happy New Year
do
print("Happy New Year\n")
end printIt
end class
Мозг
Мозг
#! this is also a single line comment
{- and a multi-liine
comment. -}
"Happy New Year" println.
С
С
#включать
main() {
printf("Happy New Year\n");
}
С#
С#
using System;
class HappyNewYear {
static void Main() {
Console.WriteLine("Happy New Year");
}
}
С++
С++
#include<iostream>
int main(){
std::cout<<"Happy new year!"<<std::endl;
return 0;
}
Нажмите
Нажмите
#include <stdio.h>
cilk void main()
{
printf("Happy New Year\n");
}
КЛЭР
КЛЭР
[ main() -> printf("Happy New Year\n") ]
Клипер
Клипер
? "Happy New Year"
quit
КОБОЛ
КОБОЛ
IDENTIFICATION DIVISION.
PROGRAM-ID. HappyNewYear.
AUTHOR. Fabritius.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
INPUT-OUTPUT SECTION.
DATA DIVISION.
FILE SECTION.
WORKING-STORAGE SECTION.
LINKAGE SECTION.
PROCEDURE DIVISION.
DISPLAY "Happy New Year".
STOP RUN.
Одновременная очистка
Одновременная очистка
module HappyNewYear
import StdEnv
Start :: String
Start = "Happy New Year"
Готовить
Готовить
[print "Happy New Year"];
УЮТНАЯ БЕСКОНЕЧНОСТЬ
УЮТНАЯ БЕСКОНЕЧНОСТЬ
BEGIN ;
WRITE 6 'Happy New Year' ; { 6 ist Stdout }
END ;
C-Talk
C-Talk
cout << "Happy New Year\n";
Завиток
Завиток
{curl 1.7 applet}
{applet license = "personal"}
Happy New Year
Циклон
Циклон
#include <stdio.h>
int main() {
printf("Happy New Year\n");
return 0;
}
База данных
База данных
? "Happy New Year"
return
Пакетная обработка DOS
Пакетная обработка DOS
@ECHO OFF
ECHO Happy New Year
Dylan
define method Happy-New-Year()
format-out("Happy New Year\n");
end method Happy-New-Year;
Happy-New-Year();
?
?
println( "Happy New Year" )
Эйфелева
Эйфелева
indexing
title: "Happy New Year";
author: "rgen3";
class MAIN creation
make
feature
make is
do
io.put_string("Happy New Year");
io.new_line
end -- make
end -- class MAIN
Изумруд
Изумруд
const HappyNewYear ==
object HappyNewYear
process
stdout.putstring["Happy New Year\n"]
stdin.close
stdout.close
end process
end HappyNewYear
Эрланг
Эрланг
io:fwrite("Happy New Year~n").
%% im Eingabemodus
Эйфория
Эйфория
puts (1, "Happy New Year\n")
РЫБА
РЫБА
output "Happy New Year" ;;
ФОП
ФОП
.
box
Happy New Year !!!
.
ende
Форт
Форт
.
" Happy New Year"
Fortran
PROGRAM HappyNewYear
PRINT *, "Happy New Year"
END PROGRAM HappyNewYear
ЛИСА
ЛИСА
? "Happy New Year"
return
Гофер
Гофер
show "Happy New Year"
Хаскелл
Хаскелл
-- file: Main.hs
-- compile: ghc --make Main -o main
module Main (main) where
main = putStr "Happy New Year\n"
HB (Гиперстроитель)
HB (Гиперстроитель)
# definiere ein Objekt HappyNewYear
:set HappyNewYear
<b>HappyNewYear</b>
:
# definiert das Startobjekt, welches man mittels URL aufrufen kann
:out main
<html><head></head><body>
<HappyNewYear> <!-- ruft das Objekt HappyNewYear auf -->
</body></html>
Надеяться
Надеяться
"Happy New Year\n";
HTML
HTML
<html>
<head>
<title>Happy New Year</title>
</head>
<body>
Happy New Year
</body>
</html>
ИБМ-ИСПОЛНИТЕЛЬ
ИБМ-ИСПОЛНИТЕЛЬ
&CONTROL
*
&TYPE Happy New Year!
*
&EXIT 0
<h4>Icon</h4>
procedure main(args)
write("Happy New Year\n")
end
Дж
Дж
'Happy New Year'
Java (апплет)
Java (апплет)
import java.applet.*;
import java.awt.*;
public class HappyNewYear extends Applet {
public void paint(Graphics g) {
g.drawString("Happy New Year",10,10);
}
JavaScript
JavaScript
<html>
<head>
<title>Javascript Happy New Year</title>
</head>
<body>
<script>
document.write("Happy New Year!");
</script>
</body>
</html>
К
К
` 0:"Happy New Year\n"
Латекс
Латекс
\documentclass[a4paper]{report}
\title{Happy New Year in LaTeX}
\begin{document}
Happy New Year
\end{document}
Леда
Леда
include "std.led";
begin
print("Happy New Year");
end;
ЛИРЛ
ЛИРЛ
print "Happy New Year"
Лисп
Лисп
(print "Happy New Year")
Логотип
Логотип
print [Happy New Year]
Хам
Хам
@SysInclude {doc}
@Doc @Text @Begin
Happy New Year
@End @Text
Луа
Луа
print("Happy New Year\n")
Делать
Делать
main-target:
@echo "Happy New Year"
Меркурий
Меркурий
% compile with:
% mmake Happy.depend
% mmake Happy
:- module Happy.
:- interface.
:- import_module io.
% di=desctructive input, uo=unique output
:- pred main(io__state::di, io__state::uo) is det.
:- implementation.
% "-->" tells that we are using DCG (definite clause grammar), which frees us
% from threading some extra arguments through the code.
main --> io__write_string("Happy New Year\n").
сливаться
сливаться
"Happy New Year!".
println
Миранда
Миранда
"Happy New Year!"
Моби
Моби
module Main {
val () = ConsoleIO.print "Happy New Year\n"
}
Модуль
Модуль
MODULE HappyNewYear;
FROM InOut IMPORT WriteString, WriteLn;
BEGIN
WriteString('Happy New Year');
WriteLn;
END HappyNewYear.
Свинка
Свинка
HAPPY W "Happy New Year",!
Q
НЭСЛ
НЭСЛ
print_string("Happy New Year\n");
Оберон
Оберон
MODULE HappyNewYear;
IMPORT Out;
BEGIN
Out.Open;
Out.String('Happy New Year');
END HappyNewYear.
Цель-C
Цель-C
void main()
{
printf("Happy New Year\n");
}
Цель Спокойствие
Цель Спокойствие
print_string("Happy New Year\n");;
Облик
Облик
sys_printText("Happy New Year\n");
Октава
Октава
printf("Happy New Year\n")
Оз/Моцарт
Оз/Моцарт
% Happy New Year!!!
{Show 'Happy New Year'}
Попугай
Попугай
print "Happy New Year\n"
Паскаль
Паскаль
PROGRAM HappyNewYear;
BEGIN
WRITELN('Happy New Year');
END.
Перл
Перл
print "Happy New Year\n";
Фантом
Фантом
(* Happy New Year! *)
module HappyNewYear;
import stdio;
begin
stdio.puts("Happy New Year\n");
end HappyNewYear.
PHP
PHP
<Эphp
echo "Happy New Year\n";
?>
Пико
Пико
{
"da es in Pico keine Kommentare gibt,";
"verwende ich einfach Strings.";
display('Happy New Year', eoln)
}
Щука
Щука
void main()
{
write("Happy New Year\n");
}
ПЛ/0Е
ПЛ/0Е
PROGRAM HappyNewYear;
BEGIN
WRITELN('Happy New Year');
END.
ПЛ/1
ПЛ/1
HAPPY: PROCEDURE OPTIONS (MAIN);
PUT SKIP LIST('HAPPY NEW YEAR!');
END HAPPY;
ПЛ/SQL
ПЛ/SQL
BEGIN
DBMS_OUTPUT.put_line('Happy New Year');
END;
Гибкий
Гибкий
console "Happy New Year" eol
Посрскрипт
Посрскрипт
% Happy New Year
/Courier findfont
28 scalefont
setfont
0 0 moveto
(Happy New Year) show % Text links unten ausgeben
showpage
Профан
Профан
PRINT "Happy New Year"
Пролог
Пролог
?- write('Happy New Year'), nl.
Питон
Питон
print "Happy New Year"
р
р
print("Happy New Year")
Ребол
Ребол
[Title: "Happy New Year"
Date: 1-Jan-2012
File: %webscan.r
Author: "Rgen3"
Version: 1.2.3
print "Happy New Year"]
РЕКСС
РЕКСС
SAY "Happy New Year"
Рубин
Рубин
"Happy New Year\n".
display
Сатер
Сатер
class MAIN is
main is
#OUT + "Happy New Year\n";
end; -- main
end; -- class MAIN
Схема
Схема
(display "Happy New Year")
Шелл-Спрахен
Шелл-Спрахен
echo Happy New Year
Симула
Симула
begin
OutText("Happy New Year");
OutImage
end
Сина
Сина
class HappyNewYear interface
methods
show returns nil;
inputfilters
disp: Dispatch = {inner.*};
end;
class HappyNewYear implementation
methods
show
begin
self.printLine('Happy New Year');
end;
end;
main
temps
Happy: HappyNewYear;
begin
Happy.show
end
Сириус
Сириус
PROGRAM Happy_New_Year
OUTPUT ('Happy New Year')
END
Сизаль
Сизаль
define main
function main(returns array [Character])
"Happy New Year"
end function
Болтовня
Болтовня
'Happy New Year' out.
СМЛ
СМЛ
print "Happy New Year\n";
СНОБОЛ
СНОБОЛ
OUTPUT = 'Happy New Year'
END
SQL
SQL
SELECT 'Happy New Year'
Супербаза
Супербаза
? "Happy New Year!"
ТКЛ
ТКЛ
puts "Happy New Year"
TI-83 Graphing Calculator
:Disp "Happy New Year"
ТОМ
ТОМ
implementation class HappyNewYear
int main Array argv
{
[[[stdio out] print "Happy New Year"] nl];
return 0;
}
end;
implementation instance HappyNewYear end;
Тьюринг
Тьюринг
put "Happy New Year"
ТХL
ТХL
define program
[repeat token]
end define
% Main transformation rule - whatever the input,
% transform it into Happy New Year
function main
replace [program]
_ [program]
by
"Happy New Year"
end function
НЛО
НЛО
main : String is
"Happy New Year\n"
VHDL
VHDL
ENTITY HappyNewYear IS
END HappyNewYear;
ARCHITECTURE bhv OF HappyNewYear IS
BEGIN
ASSERT FALSE
REPORT "HAPPY NEW YEAR"
SEVERITY NOTE;
END bhv;
Вим
Вим
:echo "Happy New Year"
ВебЛ
ВебЛ
PrintLn("Happy New Year");
WML (язык разметки беспроводной сети)
WML (язык разметки беспроводной сети)
<Эxml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" " http://www.wapforum.org/DTD/wml_1.1.xml ">
<!-- Happy New Year in WML -->
<wml>
<card id="Happy_New_Year" title="С Новым Годом">
<p>Happy New Year</p>
</card>
</wml>
XPL0
XPL0
code Text=12;
Text(0, "Happy New Year");
Якас
Якас
WriteString("Happy New Year");
ЯФЛ
ЯФЛ
DEFINITION MODULE HappyNewYear;
CLASS HappyClass;
METHOD CREATE;
METHOD Main;
END HappyClass;
END HappyNewYear;
IMPLEMENTATION MODULE HappyNewYear;
FROM Streams IMPORT StdOut;
CLASS HappyClass;
METHOD CREATE;
BEGIN
-- wird aufgerufen um das Objekt zu initialisieren
Main;
END;
METHOD Main;
BEGIN
StdOut.WriteLine ("Happy New Year");
END Main;
END HappyClass;
END HappyNewYear;
Йоикс
Йоикс
import yoix.stdio.*;
printf("Happy New Year\n");
Йорик
Йорик
write, "Happy New Year\n"
Теги: #программирование #языки программирования #Новый 2012 год #Чулан
Вместе с данным постом часто просматривают:
-
Ведьмак 2 Официально Представлен
19 Oct, 24 -
Бизнес-Процессы Под Нагрузкой
19 Oct, 24 -
Манифест Инженеров Службы Поддержки
19 Oct, 24