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] Error 1020 Cloudflare: Access was denied
- What is an Authorization Code Grant? OAuth 2.0
- Fix: psql: error: connection to server at localhost (::1) port 5432 failed: FATAL: database does not exist
- 100+ SEO Tips to improve your website search ranking
- How to submit website to dmoz directory
- How to check the version of NodeJS installed
- How to enter Rockstar Activation Code?
- Background task activation is spurious error - Windows 10, Office 2016, Office 365
- Angular CLI ng Error: You need to specify a command before moving on. Use --help to view the available commands
- cURL HTTP GET request command examples
- Fix - JioCinema Something Went Wrong Please Try Again Error 8001 while streaming IPL Cricket Live
- How to remove password from pdf file
- How to identify the version of IntelliJ
- Command: How to scp a file to remote server location?
- How to add Widgets to MacBook Desktop
- Setting up RSS feeds notifications within Outlook
- Fix - Website Connection timed out Error Code 522 (Cloudflare)
- How to fix: Please check your network connection (Retry)
- Fix: Could not connect to Redis at 127.0.0.1:6379: Connection refused
- Accept Only 0-9 Numbers RegEx Example
- How to create a New Project in Visual Studio Code (VS Code)
- Top 10 emerging breakthrough trending technologies
- Free Unlimited Calls from MTNL & BSNL Landlines from 1st May 2015
- [Error] zsh: command not found: mvn
- How to Scan iPhone for Virus? Is Antivirus it really required?
More Posts:
- [fix] openssl No such file or directory error C++ - Ubuntu
- [Solution] macOS could not be installed on your computer OSInstall.mpkg appears to be missing or damaged - MacOS
- macOS: Change Weather App Temperature unit from Fahrenheit to Degree - MacOS
- Adding Sub Headings to Bootstrap Header tags - Html
- Facebook Graph API Unavailable - Facebook
- How to run bash command in background - Bash
- Installing Android Studio Dolphin on Mac with Apple (M1/M2) Chip - Android-Studio
- How to Disable EditText Keyboard Android App - Android