As a developer, you all must have worked on various programming languages and must have started with a simple "hello world" example. Though the message remains the same, every language has a different syntax (set of commands) to print it (with few exceptions where the command is the same for more than 1 language).
Listed below is the syntax of some common computer programming languages (chronologically), do leave a comment if we missed any language
Programming Language | Command | Syntax |
---|---|---|
ABAP | WRITE | WRITE 'hello world'. |
ADA | Put_Line | Put_Line("hello world"); |
APPLESCRIPT | display dialog | display dialog "hello world" |
ASP.NET | Response.Write | Response.Write("hello world"); |
BASIC | PRINT "hello world" | |
BATCH | @echo | @echo hello world |
C | printf | printf("hello world"); |
C++ | std:cout << | std:cout << "hello world"; |
C# | Console.WriteLine | Console.WriteLine("hello world"); |
COBOL | DISPLAY | DISPLAY "hello world". |
D | writeln | writeln("hello world"); |
F# | printfn | printfn "hello world" |
FORTRAN | write | write(*,*) 'hello world' |
HTML | hello world | |
JAVA | System.out.println | System.out.println("hello world"); |
JAVASCRIPT | alert | alert('hello world') |
LOGO | print [hello world] | |
MATLAB | disp | disp('hello world') |
OBJECTIVE-C | NSLog | NSLog("hello world"); |
PASCAL | WriteLn | WriteLn('hello world'); |
PERL | print "hello world"; | |
PHP | echo | <?php echo 'hello world'; ?> |
PL/SQL | DBMS_OUTPUT.PUT_LINE | DBMS_OUTPUT.PUT_LINE('hello world'); |
POWERSHELL | 'hello world' | |
PYTHON | print "hello world" | |
RUBY | puts | puts "hello world" |
SQL | select | select 'hello world' |
SWIFT | println | println("hello world") |
VISUAL BASIC | MsgBox | MsgBox "hello world" |
VISUAL BASIC .NET | Console.WriteLine | Console.WriteLine("hello world") |
VISUAL FOXPRO | ? | ? "hello world" |
XSLT | <xsl:text> | <xsl:text>hello world |
More Posts related to HowTos,
- Brew Error - This command updates brew itself and does not take formula names
- How to get more information about npm using brew command
- How to find the path of formula Installation by Brew
- MongoDB: Failed to connect to 127.0.0.1:27017 reason: Connection refused
- Clearing the Cache in Firefox Web Browser
- How to enter Rockstar Activation Code?
- How to display line numbers in Terminal while displaying content of a file
- How to install Postman natively on a Mac
- ChatGPT Outage: Hmm...something seems to have gone wrong. Maybe try me again in a little bit.
- Copy all .vcf Mobile Contacts files into one .vcf
- How to Whitelist IP Address on GoDaddy Hosting?
- How to check the version of NodeJS installed
- How to remove password from pdf file
- Top 10 emerging breakthrough trending technologies
- How to press shortcut CTRL + ALT + DEL on Windows Remote Desktop
- Gmail Unable to upload because it is a folder or a package (like an application bundle or RTFD document)
- How to write hello world different languages syntax
- [fix] Editor could not be opened unexpected error: File is a directory (VS Code)
- How to generate ssh key?
- How to Change or Set a new Password for your Wi-Fi Router
- [Error] zsh: command not found: mvn
- What is an Authorization Code Grant? OAuth 2.0
- Install SonarLint on Visual Studio Code
- Unzip a Zip file from Terminal Command
- Format Code in Visual Studio - VS Code [Mac/Windows/Linux]
More Posts:
- 3 ways to clear screen on Linux Terminal - Linux
- How to check installed docker version command - Docker
- AlertDialog with single button example : Android - Android
- 🔥 [BTS ARMY] #ExaBLINK, #ExaARMY hashtags trending worldwide - BTS
- -bash: startup.sh: command not found - Apache Tomcat 8 - Tomcat
- Users experience call quality issue, voice distortion, disconnection with Microsoft Teams call and meeting - Teams
- How to update Android Studio - Android-Studio
- Install GCC on M1/M2 ARM Based Mac - MacOS