Hello World Programs
OBJECTIVE-C
#import #import int main(void) { NSLog(@"Hello, World"); return 0; }
C
#include int main() { printf("Hello, World"); return(0); }
C++
#include int main() { std::cout << "Hello, World"; return 0; }
JQUERY
$("body").append("Hello, World");
CLIPPER
? "Hello, World"
HTML
Hello, World
XSLT
Hello, World
VISUAL BASIC
Module Module1 Sub Main() Console.WriteLine("Hello, World") End Sub End Module
VBScript
MsgBox "Hello, World"
BASIC
PRINT "Hello, World"
R
cat('Hello, World')
COFFEESCRIPT
console.log 'Hello, World'
PERL 5
print "Hello, World";
JULIA
println("Hello, World")
PASCAL
program HelloWorld; begin WriteLn('Hello, World'); end.
DELPHI
program HelloWorld; begin Writeln('Hello, World'); end.
RUBY
puts "Hello, World"
MATLAB
disp('Hello, World')
JAVASCRIPT
document.write('Hello, World');
BASH
echo "Hello, World"
PYTHON
print ("Hello, World")
LOGO
print [Hello, World]
SWIFT
print("Hello, World")
JAVA
public class Main { public static void main(String[] args) { System.out.println("Hello, World!"); } }
C#
using System; class Program { public static void Main(string[] args) { Console.WriteLine("Hello, World"); } }
PROCESSING
void setup(){ println("Hello, World"); }