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 same, every language has different syntax (set of commands) to print it (with few exceptions where the command is 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 |
More Posts related to HowTos,
- Background task activation is spurious error - Windows 10, Office 2016, Office 365
- How to Generate Self-Signed OpenSSL certificate in three easy steps
- How to Kill service running on port using terminal command
- How to press shortcut CTRL + ALT + DEL on Windows Remote Desktop
- Top 10 emerging breakthrough trending technologies
- Free Unlimited Calls from MTNL & BSNL Landlines from 1st May 2015
- Setting up RSS feeds notifications within Outlook
- Static IP MTNL available at Rs. 200 per month
- CentOS Cannot find a valid baseurl for repo base7x86_64 yum
- How to write hello world different languages syntax
- BSNL Broadband upgrades speed to minimum 2MBps for all users 512Kbps 1Mbps
- [IRCTC] Indian railways official eRail API 1.1 for developers to get train info
- How to submit website to dmoz directory
- Gmail Unable to upload because it is a folder or a package (like an application bundle or RTFD document)
- How to use HashTags # correctly on Social Media Facebook Twitter
- Copy all .vcf Mobile Contacts files into one .vcf
- How to Change or Set a new Password for your Wi-Fi Router
More Posts:
- Fetch More then 10 Links Per Page in Google Search Result - Google
- Android Studio: Cannot perform refactoring operation - Android-Studio
- eclipse maven m2e : Cannot complete the install - Eclipse
- Top 3 Awesome Text Editors developers prefer at workplace - Sublime
- Calculate Area of a Rectangle - C-Program
- What is Bootstrap Jumbotron and how to use it - Bootstrap
- Background task activation is spurious error - Windows 10, Office 2016, Office 365 - HowTos
- How to remove old 404 pages ulrs from Google crawler - Html
- Exception in thread main java.lang.NoClassDefFoundError: package javaClass - Java
- SharePoint Server 2016 error Microsoft Office Online Server 2016 cant be installed on the same machine as a Microsoft SharePoint Server product - SharePoint
- 7 deadly java.lang.OutOfMemoryError in Java Programming - Java
- How to Print from JavaScript HTML using window.print - JavaScript
- Unable to establish connection to adb : Android Studio Error - Android
- How to send WhatsApp message from your Android App using Intent - WhatsApp
- Portable Notepad++ for windows - NotepadPlusPlus