Got it! This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
Here is the "Hello world" program in various programming languages.
Each language is preceded by a very short introduction to that programming language.
3. C
The C programming language is still used
The successor, C++, is used for software including systems software and graphics software.
4. C code
Here is the C code.
5. C output
Here is the output of the C code.
6. Java
The Java programming language is used to obtain machine independence and runs on many platforms, including Windows, Linux and Apple.
Java is the main language used for Android mobile applications.
Java forces class-based object-oriented programming so that Java programs tend to be more difficult to write and change than with other programming languages.
7. Java code
Here is the Java code.
8. Java output
Here is the output of the Java code.
9. Python
Python is a simple but powerful language used for scripting applications. Due to the large library of Open Source packages, Python is used a lot for machine learning, data science, natural language processing, and many other areas.
Note: Python forces indentation rules within the source file, unlike most other programming languages.
For run-time efficiency, Python relies on some packages that are compiled C/C++ code.
10. Python code
Here is the Python code.
11. Python output
Here is the output of the Python code.
12. JavaScript
JavaScript started as a scripting language for client-side web pages.
JavaScript has expanded to include server-side and command line programs (e.g., using node.js).
13. JavaScript code
Here is the JavaScript code.
14. JavaScript output
Here is the output of the JavaScript code.
15. Lua
Lua is a simple put powerful scripting language written in standard (ANSI) C, so Lua can be embedded in many other programs as a scripting language.
In the computer game industry, Lua is often used by game designers to script actions while the low-level graphics are written in a language such as C++.
16. Lua code
Here is the Lua code.
17. Lua output
Here is the output of the Lua code.
18. Visual Basic Script
VBS (Visual Basic Script) is a Microsoft scripting language used for command line scripts (though PowerShell is used in many cases), Office macro programming in VBA (Visual Basic for Applications) - a scripting language based on VBS that has extensions to support Word, Excel, PowerPoint, etc. ASP (Active Server Pages) is a VBS based scripting system for server-side web pages.
19. VBScript code
Here is the VBScript code.
20. VBScript output
Here is the output of the VBScript code.
21. PHP
PHP is a scripting language for server-side web pages, though it can be used for command line programs.
22. PHP code
Here is the PHP code.
23. PHP output
Here is the output of the PHP code.
24. Ruby code
Here is the Ruby code.
25. Ruby output
Here is the output of the Ruby code.
26. Ruby
Ruby is an object-oriented scripting language for server-side web pages, though it can be used for command line programs.
27. Go
Go is a programming language developed by Google to help solve certain types of problems needed in big data and search engine support, but can be used as a general-purpose programming language.
28. Go code
Here is the Go code.
29. Go output
Here is the output of the Go code.
30. Julia
Julia is oriented towards numerical computation as found in big data processing, data science applications, machine learning, etc.
31. Julia code
Here is the Julia code.
32. Julia output
Here is the output of the Julia code.
33. Scheme
Scheme is a functional language. Functional languages use a more general declarative approach rather than a command-based imperative approach to programming.
34. Scheme code
Here is the Scheme code.
35. Scheme output
Here is the output of the Scheme code.
36. Other languages
I have included languages that I have, to date, automated the running, with or without input, and generating output, during the format of the source document into web page, document, presentation, etc.
I use a macro-formatting process so that I can write the same source code in a macro language and generate many other languages from the same source.
There are many other important and useful programming languages not covered here. Some include the following.
C#, VB.NET, etc. (Microsoft .NET languages)
F#, LISP, Clojure, etc. (functional languages)
Rust, Kotlin, Racket, etc. (newer languages)
PowerShell, Bash, etc.
I have used many of these, but they have not been yet fully integrated into my text formatter generator system.