Skip to content

Instantly share code, notes, and snippets.

@CWade3051
Created August 10, 2013 12:10
Show Gist options
  • Save CWade3051/6200199 to your computer and use it in GitHub Desktop.
Save CWade3051/6200199 to your computer and use it in GitHub Desktop.
Hello World from a bunch of diff lang
These files Demonstrate the "Hello World!" Program
in 50 different Languages.
For more Details, Open the File Named Below.
=========================
Index.htm
=========================
Thankyou for Downloading and Using Hello World Project.
Hoping that it will be useful to you.
If you have any Suggestion/Query/Feedback then Drop a Message in
My mail Box with Subject Tag "HELLO-WORLD:".
Lalit K Chaudhary
Home : http://www.angelfire.com/pq/lalit/article/hello-world-program.htm
Mail : Lalit_9876@yahoo.com
a:link
{
color: #CCFF33;font-family:Verdana; text-decoration:underline; font-size:12pt; font-weight:bold
}
code
{
font-family: Courier New; font-size: 12pt
}
a:visited
{
color: #CCFF99;font-family:Verdana; text-decoration:underline; font-size:12pt; font-weight:bold
}
a:active
{
color: #FFCC66;font-family:Verdana; text-decoration:underline; font-size:12pt; font-weight:bold
}
a:hover
{
color: #FFCC66;font-family:Verdana; text-decoration:overline; font-size:12pt; font-weight:bold
}
body
{
font-family: Verdana;
font-size:12pt; text-align:left
}
h1, h2, h3, h4, h5, h6
{
font-family: Impact;
}
h1
{
font-family:Impact; font-size:24pt; font-weight:bold
}
h2
{
font-family:Impact; font-size:18pt;
}
h3
{
font-family:Impact; font-size:14pt;
}
h4
{
font-family:Impact; font-size:12pt;
}
h5
{
color: font-family:Arial Black; font-size:10pt;
}h6 { font-family: Impact; font-size: 14pt; font-weight: bold; color: #FFFFFF;
padding: 0; background-color: #808080 }
REPORT ZHB00001.
*Hello world in ABAP/4 *
WRITE: 'Hello world'.
with TEXT_IO;
use TEXT_IO;
procedure Hello is
pragma MAIN;
begin
PUT ("Hello World!");
end Hello;
BEGIN
FILE F(KIND=REMOTE);
EBCDIC ARRAY E[0:11];
REPLACE E BY "Hello World!";
WHILE TRUE DO
BEGIN
WRITE(F,*,E);
END;
END.
'Hello World!'
DATA SEGMENT
MSG DB "Hello, World!","$"
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
START:
MOV AX, DATA ;INTILIZE
MOV DS, AX
MOV AH, 09H ;PRINT STRING
LEA DX, MSG
INT 21H
STOP:
MOV AX, 4C00H ;TERMINATE
INT 21H
CODE ENDS
END START
<%@ language="vbscript" %>
<html><body>
<%
Response.write "Hello World!"
%>
</body></html>
response.write("Hello World!")
10 PRINT "Hello, world!"
20 END
@echo off
rem COMMENTS
echo Hello World!
#include<stdio.h>
void main()
{
//COMMENTS
printf("Hello World!\n");
}
<cfset helloStr = "Hello World!">
<cfoutput>#helloStr#</cfoutput>
*****************************
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO.
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
MAIN SECTION.
*COMMENTS
DISPLAY "Hello World!"
STOP RUN.
****************************
#include <iostream.h>
main()
{
//COMMENTS
cout << "Hello World!" << endl;
return 0;
}
// COMMENTS
using System;
class HelloWorld
{
public static int Main(String[] args)
{
Console.WriteLine("Hello, World!");
return 0;
}
}
* COMMENTS
? "Hello World!"
Program HelloWorld;
{$APPTYPE CONSOLE}
//COMMENTS
Begin
WriteLn('Hello World');
End.
on startmovie
alert "Hello World"
end
trace('Hello World');
PROGRAM HELLO
PRINT *, 'Hello, world!'
END
* COMMENTS
? "Hello World"
<HTML>
<!-- COMMENTS -->
<HEAD>
<TITLE>Hello World!</TITLE>
</HEAD>
<BODY>
Hello World!
</BODY>
</HTML>
; COMMENTS : Hello World from INF
; THIS WILL COPY README.TXT, HELLO.INF TO WINDOWS\HELLO FOLDER
; GOTO ADD REMOVE PROGRAMS, SEE HELLO WORLD ENTERY
; UNINSTALL IT.
[version]
signature="$CHICAGO$"
; #### INSTALLER ####
[DefaultInstall]
CopyFiles=install.files
AddReg=add-registry-section
[DestinationDirs]
install.files=10,"Hello"
Delete.files=10,"Hello"
[install.files]
ReadMe.txt
hello.inf
[add-registry-section]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Hello",,,
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Hello", "DisplayName",0,"Hello World"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Hello", "UninstallString",0,"rundll32.exe setupapi,InstallHinfSection DefaultUnInstall 132 %10%\Hello\Hello.inf"
; #### UNINSTALLER ####
[DefaultUnInstall]
DelReg=del-registry-section
DelFiles=Delete.files
[del-registry-section]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Hello"
[Delete.files]
ReadMe.txt
hello.inf
// COMMENTS
class HelloWorld {
static public void main( String args[] )
{
System.out.println( "Hello World!" );
}
}
<html>
<body>
<script language="JavaScript" type="text/javascript">
// Hello World in JavaScript
document.write('Hello World!');
</script>
</body>
</html>
<html>
<body>
<script language="JScript">
// COMMENTS
document.write('Hello World!');
</script>
</body>
</html>
\documentclass{article}
\begin{document}
Hello, world!
\end{document}
(defun hello_world ()
(print "Hello World!")
)
; COMMENTS
print [Hello World]
MODULE Hello EXPORTS Main;
IMPORT Stdio, Wr;
BEGIN
Wr.PutText?(Stdio.stdout, "Hello World!");
END Hello.
program HelloWorld(output);
begin
WriteLn('Hello World!');
end.
Display the source blob
Display the rendered blob
Raw
%Hello World in Portable Document Format (PDF)
%PDF-1.2
1 0 obj
<<
/Type /Page
/Parent 5 0 R
/Resources 3 0 R
/Contents 2 0 R
>>
endobj
2 0 obj
<<
/Length 51
>>
stream
BT
/F1 24 Tf
1 0 0 1 260 600 Tm
(Hello World)Tj
ET
endstream
endobj
3 0 obj
<<
/ProcSet[/PDF/Text]
/Font <</F1 4 0 R >>
>>
endobj
4 0 obj
<<
/Type /Font
/Subtype /Type1
/Name /F1
/BaseFont /Arial
>>
endobj
5 0 obj
<<
/Type /Pages
/Kids [ 1 0 R ]
/Count 1
/MediaBox
[ 0 0 612 792 ]
>>
endobj
6 0 obj
<<
/Type /Catalog
/Pages 5 0 R
>>
endobj
trailer
<<
/Root 6 0 R
>>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
// COMMENTS : IT IS THE ACTUAL PHP SECTION
echo 'Hello, world!'
?>
</body>
</html>
#!/usr/bin/perl
# COMMENTS
print "Hello World!\n";
-- COMMTNTS
set serveroutput on
begin
dbms_output.enable(10000);
dbms_output.put_line('Hello World');
end;
go :-
writeln('Hello World').
# COMMENTS
print "Hello World!"
puts "Hello world!"
# COMMENTS : CAN BE RUN WITH [sh, ksh,bash]
echo 'Hello World!'
! COMMENTS;
BEGIN
OutText("Hello World!");
OutImage;
END
output = "Hello world!"
SELECT 'Hello World!' FROM dual;
#!/usr/local/bin/tclsh
# COMMENTS
puts "Hello World!"
Class HelloWorld
Shared Sub Main()
System.Console.WriteLine("Hello world!")
End Sub
End Class
Sub Main()
MessageBox("Hello World!")
End Sub
<html>
<body>
<script language="VBScript">
' Hello World in VBScript
document.write("Hello World!")
</script>
</body>
</html>
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL, "Hello world!", "", MB_OK);
return 0;
}
* COMMENTS
? "Hello World!"
WScript.StdOut.WriteLine "Hello, World";
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="Hello-World.xsl" ?>
<!-- COMMENTS -->
<text><string>Hello, World</string></text>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Hello World in XSLT -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:value-of select="text/string" />
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment