Administrator
Administrator
Hello World phiên bản đời thực
Hello World bằng Tiếng Việt
892 ngôn ngữ lập trình khác nhau. Các bạn có thể hình dung sự phức tạp, đơn giản hay so sánh cú pháp của từng ngôn ngữ qua chương trình này.
Một số minh họa
1. Lập trình bằng C
Mã:
#include
int main(void)
{
puts(“Hello, world!”);
}
2. C++
Mã:
#include
int main()
{
std::cout << “Hello, world!”;
return 0;
}
Mã:
using System;
class Program
{
public static void Main(string[] args)
{
Console.WriteLine(“Hello, world!”);
}
}
Mã:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Mã:
import javax.swing.JFrame; //Importing class JFrame
import javax.swing.JLabel; //Importing class JLabel
public class HelloWorld {
public static void main(String[] args) {
JFrame frame = new JFrame(); //Creating frame
frame.setTitle(“Hi!”); //Setting title frame
frame.add(new JLabel(“Hello, world!”));//Adding text to frame
frame.pack(); //Setting size to smallest
frame.setLocationRelativeTo(null); //Centering frame
frame.setVisible(true); //Showing frame
}
}
Mã:
document.write(‘Hello, world!’);
Mã:
print “Hello, world!”
Mã:
program HelloWorld;
begin
WriteLn(‘Hello, world!’);
end.
Mã:
puts “Hello, world!”
Mã:
Module Module1
Sub Main()
Console.WriteLine(“Hello, world!”)
End Sub
End Module
Mã:
disp (‘Hello, world!’)
println(“Hello, world!”)
12.
13. Bash
echo “Hello World”
14. Perl 5
print “Hello, world!”;
15. Basic
PRINT “Hello, world!”
16. Objective-C
#import
#import
int main(void)
{
NSLog(@”Hello, world!”);
return 0;
}
17. XSLT
Hello World
18. CoffeeScript
console.log ‘Hello, world!’
19. Logo
Mã:
print [Hello, world!]
[code]
[B]20. VBScript[/B]
[code]
MsgBox “Hello, World!”
? “Hello World”
22. Delphi
Mã:
program HelloWorld;
begin
Writeln(‘Hello, world!’);
end.
23. Julia
Mã:
println(“Hello world!”)
24. Processing
Mã:
void setup()
{
println(“Hello, world!”);
}
25. R
Mã:
cat(‘Hello, world!’)
26. PHP
Mã:
<?php
echo "Hello World";
?>
27. HTML
Mã:
Hello World
Chi Tiết 892 ngôn ngữ tham khảo thêm tạiLanguages (892 total)
- !
- !@#$%^&*()_+
- ():;#?!
- 0(nop^)
- 0587
- 05AB1E
- 0815
- 1+
- 1C Enterprise
- 256
- 2B
- 420
- 4gl
- 4test
- 4th Dimension
- 6969 Assembler
- 8051 Assembly
- 8th
- @tention!
- @text
- ~Afrikaans
- ~Arabic
- ~Belarusian
- ~Bengali
- ~Bosnian
- ~Central Kurdish
- ~Chinese
- ~Czech
- ~Dutch
- ~English
- ~Finnish
- ~French
- ~German
- ~Greek
- ~Gujarati
- ~Hausa
- ~Hebrew
- ~Hindi
- ~Hungarian
- ~Indonesia
- ~Italian
- ~Javanese
- ~Kannada
- ~Kinyarwanda
- ~Kurdish
- ~Latin
- ~Malay
- ~Malayalam
- ~Marathi
- ~Mongolian
- ~Odia
- ~Pashto
- ~Persian
- ~Polish
- ~Portuguese
- ~Punjabi
- ~Russian
- ~Sanskrit
- ~Serbian
- ~Sindhi
- ~Spanish
- ~Swedish
- ~Tamil
- ~Telugu
- ~Thai
- ~Traditional Chinese
- ~Turkish
- ~Ukrainian
- ~Urdu
- ~Vietnamese
- ~Xhosa
- ~Zulu
- μλ
- قلب
- ᚱᚢᚾᛅᛦ
- *
- なでしこ
- ひまわり
- 上海话
- 文言
- 易语言
- 火星文
- 한국어
- ?$51=
- 🆒
- A++
- aardio
- ABAP
- ABC
- ACIDIC
- Acpi
- ACRONYM
- ACS
- ActionScript 2
- ActionScript 3
- ActionScript flashmx
- ActionScript
- Ada
- Add++
- Advpl
- Aeolbonn
- Agda
- Aheui
- Aime
- Aiml
- ALAGUF
- Alda
- Algae
- ALGOL 60
- ALGOL 68
- ALGOL W
- Alore
- AlPhAbEt
- Amiga-E
- Amos
- And
- Android
- AngelScript
- Angular
- Ansible
- Ante
- AntLang
- APC
- Apex
- APL
- AppleScript
- Applesoft BASIC
- ARC
- Arduino
- Arena
- Argh
- ArkScript
- Arnoldc
- ARTICLE
- AsciiDots
- Ash
- Asm2bf
- ASP
- Aspectj
- Assembler 6502
- Assembler 6502appleII
- Assembler 6502c64
- Assembler 6809vectrex
- Assembler 8048 videopac
- Assembler ARM aarch64
- Assembler ARM
- Assembler Atari 2600
- Assembler Bootsect
- Assembler DCPU16
- Assembler FASM DOS
- Assembler hla
- Assembler HP85
- Assembler IBM360
- Assembler Intel
- Assembler lc3
- Assembler m68000 amigaos
- Assembler MASM DOS
- Assembler MASM Win32
- Assembler MASM Win64
- Assembler MIPS
- Assembler MMIX
- Assembler NASM FreeBSD
- Assembler NASM Linux
- Assembler NASM Linux64
- Assembler NASM Macho64
- Assembler NASM Win32
- Assembler pdp10 midas
- Assembler pdp11 palx
- Assembler TASM DOS
- Assembler tms9900 ti99 4a
- Assembler Vax Ultrix
- Assembler Z80 Knightos
- Assembler Z80 TI83calculator
- Assembler Z80 zxspectrum
- ATS2
- Attache
- AutoHotKey
- AutoIt
- AutoLISP
- Avisynth
- Awful
- AWK
- Axe
- A:;
- B
- Backshift
- BAIK
- Ballerina
- Bash
- BASIC 256
- BASIC
- Batch
- Batsh
- Battlestar
- BC GNU
- BC
- BCPL
- Beanshell
- Beatnik
- Beef
- Befunge
- BennuGD
- Beta
- Binaryfuck
- BIRL
- BIT
- BitBitJump
- Bitsbox
- BlackRum
- BLC
- Blender
- Blitz3D
- Bloop
- Blub
- Bolgefuck
- Boo
- Boolet
- Boolfuck
- Bosque
- Bottle
- Brainfuck 2D
- Brainfuck
- Brainloller
- Broccoli
- BRZRK
- BuddyScript
- Burlesque
- Byter
- C Shell
- C+
- C+++
- C++
- C
- Cache ObjectScript
- CAML
- Cardinal
- Casio BASIC
- cat
- Cbot
- Cduce
- Centura
- CESIL
- Ceylon
- CGI
- Chaos
- Chapel
- Cheddar
- Cheese++
- Chef
- Chem
- CherryPy
- Chicken
- Cil
- Clean
- Clipper
- CLIPS
- CLISP
- Clojure
- CLU
- CMake
- COBOL
- CobolScript
- Cobra
- Coconut
- CoffeeScript
- ColdFusion
- Come Here
- Comefrom0x10
- Common Lisp
- Concurnas
- ContinuesEquation
- Control Language
- Cool
- Cor
- Coral 66
- COW
- Crystal
- CSharp
- CSON
- CSS
- Cuda
- Cuneiform
- Curry
- CypherNeo4j
- Cω
- C*
- D
- dark
- Dart
- Darwin
- DataFlex
- Db2
- dBase
- Dc
- DCL
- DCPU
- DD DD
- Decimal
- Delphi
- Delphi
- Deno
- Desmos
- -censor-
- Divzeros
- Django
- DNA#
- Dog
- DOG
- DOG
- DogeScript
- DOGO
- dongbei
- dos
- Dotlang
- DPATL Python
- Draco
- Dragon
- DreamMaker
- Drive-In Window
- DTrace
- DUP
- Dylan
- Dyvil
- D♭♭
- E
- e62qpodb593
- EBuild
- Ec
- EchoLisp
- Efene
- Egl
- Eiffel
- Elena
- Elixir
- Elixir
- Elm
- EmacsLisp
- Emerald
- Emmental
- Emoji
- Emojicode
- EmojiCoder
- Emoticon
- Emotinomicon
- Enkelt
- EOOOL
- EPL
- Erlang EScript
- Erlang
- es
- Euphoria
- Executable
- Express
- F
- Factor
- Factors
- Falcon
- False
- Fancy
- Fantom
- FastAPI
- Fennel
- Ferite
- Fetlang
- Fim++
- Fish
- Fjoelnir
- FlaScript
- Flask
- Flutter
- Fob
- Focal
- Fog.fog
- Foo
- Forobj
- Forth
- Fortob
- Fortran
- Fortran77
- Fourier
- FoxPro
- Fractran++
- Freebrain
- Frink
- FROM HERE TO THERE
- FSharp
- FStar
- GAML
- Gammaplex
- GASOIL
- GDScript
- Gecho
- Genie
- Gentzen
- GeoJSON
- GFA Basic
- Gibberish
- GitHub Actions
- Glass
- GML
- Go
- Golfscript
- Golo
- Google Apps Script
- Gosu
- Gosu
- GraphQL
- Gravity
- GreeeeeeeeenText
- Green Marl
- Gri
- GridScript
- Grin
- Grok
- Groot
- Groovy
- GTA3Script
- Gui4Cli
- Hack
- Haml
- Haskell
- Haxe
- Hello
- Hello++
- HEX
- Hexish
- Higher Subleq
- Hodor
- Hollow
- Holy C
- Homespring
- HOP
- HP_41C
- HQ9++
- HQ9+
- HQ9funge
- HTML
- HTTP
- Hubot
- Huf
- Hy
- HyperTalk
- H🌍
- I5
- IBM1401
- IcedCoffeeScript
- ICI
- Icon
- IDL
- Idris
- Il
- INCAL
- InDec
- Inform
- Ink
- Inkling
- Intercal
- Io
- Ioke
- IRC
- IronScheme
- Iscom
- ISLISP
- ITAMFSARL
- J#
- J
- Jade
- Jai
- Jasmin
- Jason
- Java
- JavaScript
- Jelly
- Jenkinsfile
- Jess
- JScript
- JSFuck
- JSON
- JSONiq
- JSX
- JudoScript
- Julia
- Jython
- K
- Karel
- Ked
- KimL
- Kipple
- Kitanai
- Kitten
- Kivy
- Koa
- Koberi C
- Kotlin Script
- Kotlin
- KSH
- Kumir
- Kv
- Labyrinth
- LassoScript
- LaTeX
- LazyK
- LBL
- LCoffee
- Less
- Leszek
- libavg
- Like, Python
- LilyPond
- Limbo
- Lingo
- Lisaac
- Lisp
- ListLang
- LiveCode
- LiveScript
- LLVM
- LNUSP
- Locomotive Basic
- Logicode
- Logo
- Logtalk
- LOLA
- LOLCODE
- LOLPython
- LotusScript
- LSL
- Lua Grimex
- LUA
- LWC
- Löve
- M4
- MacLisp
- Macsyma
- Magic
- Make
- Malbolge
- Mariolang
- Markdown
- Mathematica Online
- Mathematica
- MATLAB 1.0
- MATLAB
- MaxScript
- Mel
- MemeAssembly
- Meq
- Mercury
- MilkScript
- Minecraft
- Mips
- Miranda
- Mirc
- Mmmm()
- ModiScript
- Modula 2
- Modula 3
- Mongo
- Monkey
- Monte
- Moo
- Moonscript
- Morse code
- Mostawesomeprograminglanguage
- Mouse
- Move
- Mozart
- Muf
- Mumps
- Mushcode
- MXML
- Myrddin
- MySQL
- Nadeshiko
- Neko
- Nemerle
- NewtonScript
- Ni
- Nice
- Night
- Nim
- Nit
- Node.js
- NoFlo
- Not Python
- Novice
- Nu
- NWScript
- NXC
- Oberon 2
- Oberon
- Obix
- Obj
- Object Pascal
- Objective C
- Objective J
- ObjectStar
- OCaml
- occam
- Octave
- Odin
- Omgrofl
- ON THE WAY TO WHO KNOWS WHERE
- Ooc
- Ook!
- Opa
- OpenLaszlo
- Oracle SQL
- Orc
- Org-mode
- Orion
- OX
- Oxygene
- o:XML
- Parenthetic
- Parser
- Pascal
- Pauscal
- Pawn
- PB
- PBWin
- Pebble
- PeopleCode
- Perfume
- Perl
- Perl
- Perl6
- Perseus
- Pharo
- Phi
- Phix
- PHP
- PiCat
- Piet
- Pig
- PikaLang
- Pike
- Pinecone
- Pit
- Pizza
- Please Porige Hot
- PLI
- Pluvo
- PL/SQL
- Polynomial
- Pony
- Porth
- Portugol
- PostCSS
- Postgre SQL
- PostScript Page
- PostScript
- PosXML
- Potaka
- Potigol
- PowerBuilder
- PowerShell
- Printscript
- Processing
- Profan
- Prolog
- Promela
- ProvideX
- Pug
- Pure Data
- PureBasic
- PureScript
- Pygame
- PyQt4
- PyQt5
- Pyret
- PySide2
- PySimpleGUI
- Python 2
- Python 3
- Q
- Qalb
- QBasic
- QCL
- Qore
- QSharp
- QU
- QuakeC
- QuartzComposer
- Qugord
- Quorum
- QWERTY
- R
- Racket
- Radixal
- Rafflalang
- Raku
- RatFor
- React Native
- React
- React360
- Readlink
- RealBasic
- Reason
- Rebol
- Rebol
- Recurse
- Red
- Redis
- Refal
- ReScript
- reStructuredText
- Retro
- Rexx
- Rick Roll
- Ricktea
- Ride
- Ring
- RISC V
- RiveScript
- Robot Framework
- Rockstar
- Roco
- Roy
- RPG IV
- RPG
- RTL2
- Ruby on Rails
- Ruby
- Ruota
- Rust
- S Algol
- Sacred
- Sal
- Sas
- Sass
- Sather
- Scala
- Scheme
- SCHWift
- SCILab
- Scratch 1
- Scratch 2
- Scratch 3
- Scss
- Sed
- Seed
- Seed7
- Self
- Semicolon
- SendStuff
- Setanta
- Shakespeare
- Shell
- Shen
- Sidekiq
- SIL
- Simpl+
- Simula
- Skip
- Skript
- Slashes
- Slim
- Smali
- SmallTalk GNU
- SmallTalk
- Smallworld MAGIK
- Smil
- SmileBASIC
- SML
- Snekky
- SNOBOL
- Snowman
- Solidity
- SoupScript
- SparQL
- Spoon
- SPSS
- SQL
- Squirrel
- Standard ML
- Stanza
- Starlark
- Streem
- Stuck
- Stylus
- SubleQ
- SuperCollider
- Svelte
- SVG
- Swift
- SystemTap
- Plain text
- Takeover
- Tao Presentations
- TapeBagel
- Tcl
- TCSH
- Tea
- Telephone
- Terra
- TeX
- THP
- Thue
- TI Hexadecimal
- TIBasic
- Tk
- Tkinter
- TOML
- Trans-dimensional
- Tri
- TrollScript
- TrumpScript
- TSharp
- TSQL
- TTCN3
- Turing
- Turing
- TypeScript
- Ubercode
- Ubiquity
- Umajin
- Underload
- Unicomal
- Unicon
- Uniface
- Unlambda
- Unreal Script
- V
- V
- Vala
- VB.NET
- Velato
- Verbose
- VerboseFuck
- Verilog
- Verve
- VHDL
- Vi
- VimScript
- Virgil
- Visual Basic for Applications
- Visual Basic Script
- Visual Basic
- VisualFoxPro
- VisuAlg
- VJass
- VMS
- Vowels
- VRML
- Vue
- WebAssembly
- Wheat
- Whenever
- Whirl
- Whitespace
- WikiText
- WML
- WolframLanguage
- wowLang
- Wren
- WSH
- wxPython
- X D
- XBase++
- XBase
- XHTML
- Xihcute
- XL
- XLisp
- Xlogo
- XML
- XPL0
- XQuery
- XRF
- XSLT
- XUL
- Y
- YAML
- YASKC
- YoLang
- YoptaScript
- Z Shell
- ZBD
- Zepto
- Zetaplex
- Zhpy
- Zig
- Zim
- Zimbu
- Zinc
- Zombie
- Zonnon
- ZPL
- ZScript
- Zsq
- zx
GitHub - xbinner18P/leachim6S: Hello world in every computer language. Thanks to everyone who contributes to this, make sure to see CONTRIBUTING.md …
Hello world in every computer language. Thanks to everyone who contributes to this, make sure to see CONTRIBUTING.md … - xbinner18P/leachim6S
github.com