What programming languages do you know?
12Me21Created:
Post a list of programming languages that you know. Also include a "Hello, World!" program in each language.
SmileBASIC: ?"Hello, World! (15 bytes)
QB64: ?"Hello, World!" (16)
TI-BASIC: Disp "HELLO, WORLD! (15)
Befunge: 94+"!dlroW ,olleH">:#,_@ (24)
HQ9+: H (1)
I can also (partially) understand most languages (like C++, Java, Lua, etc.) if the code is written well
List of everyone's hello world code:
H -HQ9+ ?"Hello, World! -SmileBASIC echo Hello, World! -Batch <p>Hello, World!<p> -HTML puts "Hello World!" Ruby print("Hello, World!") -python print('Hello World!') Lua Disp "Hello, World! -TI-BASIC printf("Hello, World!"); -C cout << "Hello, World!"; -C++ document.write("Hello, World!") -JavaScript Console.WriteLine("Hello, World!") -VB Console.WriteLine("Hello, World!"); -C#*Disp is 1 byte in TI BASIC, but lowercase letters are 2 bytes each.
Here're the languages I know:
C: printf("Hello World!");
C++: cout << "Hello World!");
C#: Console.Write("Hello World!");
VB: MsgBox("Hello World!")
F#: printfn "Hello World!"
Java: System.out.println("Hello World!");
JavaScript: console.log("Hello World!");
Python: print ("Hello World!")
HTML: <p>Hello World!</p>
SmileBasic: PRINT "Hello World!"
N# (yea yea I'm cheating a bit): Console.Println "Hello World!"
And for esoteric languages:
Brainfuck: ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
Unlimibrain: +++++[>+++>++++++>+++<<<-]>[<+++++v+++++++^>>>+++++<<-]<---$v----$+++++++$$+++$^>>++$>---$v$+++$------$--------$^<+$
HQ9+: H
Hello: h
Hello++: Hello World
Hello++++: Hello World
I'll try.
Bash echo "Hello World" 3. Basic PRINT "Hello, world!" 4. C #include int main(void) { puts("Hello, world!"); } 5. C++ #include int main() { std::cout << "Hello, world! "; return 0; } 6. C# using System; class Program { public static void Main(string[] args) { Console.WriteLine("Hello, world!"); } } 7. Clipper ? "Hello World" 8. CoffeeScript console.log 'Hello, world!' 9. Delphi program HelloWorld; begin Writeln('Hello, world!'); end. 10. HTML Hello World! 11. Java import javax.swing.JFrame; //Importing class JFrame import javax.swing.JLabel; //Importing class JLabel public class HelloWorld { public static void main(String[] args) { JFrame frame = new JFrame(); //Creating frame frame.setTitle("Hi!"); //Setting title frame frame.add(new JLabel("Hello, world!"));//Adding text to frame frame.pack(); //Setting size to smallest frame.setLocationRelativeTo(null); //Centering frame frame.setVisible(true); //Showing frame } } 12. JavaScript document.write('Hello, world!'); 13. jQuery $("body").append("Hello world!"); 14. Julia println("Hello world!") 15. Logo print [Hello, world!] 16. MatLab disp('Hello, world!') 17. Objective-C #import #import int main(void) { NSLog(@"Hello, world! "); return 0; } 18. Pascal program HelloWorld; begin WriteLn('Hello, world!'); end. 19. Perl 5 print "Hello, world! "; 20. PHP 21. Processing void setup(){ println("Hello, world!"); } 22. Python print "Hello, world!" 23. R cat('Hello, world! ') 24. Ruby puts "Hello, world!" 25. Swift println("Hello, world!") 26. VBScript MsgBox "Hello, World!" 27. Visual Basic .NET Module Module1 Sub Main() Console.WriteLine("Hello, world!") End Sub End Module 28. XSLT Hello Worldloljk
PHP echo"Hello World"; SmileBASIC: ?"Hello World Lua print('Hello World') JQuery $("body").append("Hello world"); HTML <p> Hello world</p> Rblx.Lua print('Hello world') C#: Console.Write("Hello World");
SmileBASIC, TI-BASIC, and just today I started learning HTML. I know the basics of it, enough for a hello world, so here:Same, but with Python and Lua.SmileBASIC: PRINT "Hello World!" TI-BASIC : Disp "Hello World" HTML : <p> Hello World!</p>Not as impressive as everyone else here :P but I'm working on it :D
Python : Print("Hello World!") Lua : Print("Hello World!")
Oh, I almost forgot Ruby!
Ruby: puts "Hello World!"