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,
- Fix NVIDIA GeForce Experience ERROR CODE 0x0003
- How to convert byte array to String [Kotlin]
- Unzip a Zip file from Terminal Command
- How to write hello world different languages syntax
- [Error] zsh: command not found: mvn
- How to know the version of OpenSSL
- [Solution] IDEA IntelliJ System.out.println function shortcut (sysout alternative for eclipse IDE)
- The default username and password for RabbitMQ
- ChatGPT Outage: Hmm...something seems to have gone wrong. Maybe try me again in a little bit.
- How to check the version of NodeJS installed
- Gmail Unable to upload because it is a folder or a package (like an application bundle or RTFD document)
- How to remove password from pdf file
- BSNL Broadband upgrades speed to minimum 2MBps for all users 512Kbps 1Mbps
- MongoDB: Failed to connect to 127.0.0.1:27017 reason: Connection refused
- Turn off Focus Mode on Mac
- Steps to Delete or Deactivate Instagram Account
- [IRCTC] Indian railways official eRail API 1.1 for developers to get train info
- CentOS Cannot find a valid baseurl for repo base7x86_64 yum
- Why I see Download pre-built shared indexes in IntelliJ
- Copy file from a remote server to current local directory system using SCP command
- [Fix] Minecraft Error: A JNI error has occurred, please check your installation and try again
- How to install Zsh shell
- Merge multiple zip files without unzipping (extracting)
- How to find someone on Instagram
- How to get an embed code from Vimeo?
More Posts:
- 24: Append One String to Another in Python Program - Python-Programs
- Vertically Center Text in a DIV Element - CSS
- Fix: Error: error:0308010C:digital envelope routines::unsupported NodeJs/Vue/React - JavaScript
- SQLite Error: unknown command or invalid arguments: open. Enter .help for help - Android
- Get HTTP Request Response Headers Safari Browser - MacOS
- iOS 14 Airpods Connected message everytime when the iPhone is unlocked - Apple
- Ubuntu zsh: command not found: nano - zsh
- Program 12: Calculate Area and Circumference of Circle - 1000+ Python Programs - Python-Programs