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
- Add X days from today in Command Line
- How to find someone on Instagram
- cURL HTTP GET request command examples
- Free Unlimited Calls from MTNL & BSNL Landlines from 1st May 2015
- Why I see Download pre-built shared indexes in IntelliJ
- How to display line numbers in Terminal while displaying content of a file
- How to install Postman natively on a Mac
- Display bookmarks bar Safari
- [Error] zsh: command not found: mvn
- How to rerun last command in Zsh shell
- How to identify the version of IntelliJ
- How to convert byte array to String [Kotlin]
- How to install Zsh shell
- How to stop or quit cat command?
- [Fix] Steam: Friends Network Unreachable Error
- How to Kill service running on port using terminal command
- How to Generate Self-Signed OpenSSL certificate in three easy steps
- How to enable line numbers in IntelliJ
- Copy all .vcf Mobile Contacts files into one .vcf
- How to write hello world different languages syntax
- What is HTTP 500 Internal Server Error Code on web browsers
- How to get an embed code from Vimeo?
- [Error] There was an error connecting to the apple id server
- Unzip a Zip file from Terminal Command
More Posts:
- How to get an embed code from Vimeo? - HowTos
- How to install Python 3.9 using brew on Mac - Python
- 🔥 [BTS ARMY] #ExaBLINK, #ExaARMY hashtags trending worldwide - BTS
- fill_parent vs match_parent vs wrap_content - Android
- JavaScript date in yyyy-MM-dd format - JavaScript
- How to make zsh as the default shell on Ubuntu - zsh
- Locate Notepad++ unsaved files backup location - NotepadPlusPlus
- MySQL #6 - Error on delete of './my-database/db.opt' (Errcode: 13 - Permission denied) - MySQL