Welcome to Script Programming




Handy Calculators



Programming Languages

C, C++, C++/CLI, C#, F#, Visual BASIC, PASCAL, FORTRAN, GO, COBOL, PL/1, Java, Python, Ruby, Lua, LISP, Prolog, Scala, Jython, IronPython, JRuby, Perl. PHP, SQL, Ada, Haskell. OCaml. Scheme, HTML, XML, LaTeX, AmsLaTeX, LuaTeX, XML, Javascript, NodeJS, SVG, CSS, Groovy, Lex, Yacc, Ajax, GnuPlot, Octave, Mathematica, Maple, Swing, Silverlight, and etc.




Output the string

Hello, world!

in the terminal window.
Output the UTF-8 string

안녕하세요?

in the terminal window.
C Hello

#include <stdio.h> int main() { printf("Hello, world!\n"); return 0; }
C 한글 Hello

#include <stdio.h> int main() { printf("안녕하세요?\n"); return 0; }
C++ Hello

#include <iostream> using namespace std; int main( void ) { cout << "Hello, world!" << endl; return 0; }
C++ 한글 Hello

#include <iostream> int main( void ) { setlocale(LC_ALL,""); std::wcout << L"안녕하세요?" << std::endl; return 0; }
C++/CLI Hello

// Compile with options: /clr /utf-8 /std:c++17 #include <stdio.h> #include <iostream> int main(cli::array<System::String ^> ^args) { System::Console::WriteLine("Managed Hello World"); std::cout << "Native Hello World" << std::endl; printf("Traditional C Hello World\n"); return 0; }
C++/CLI 한글 Hello

// Compile width options: /clr /utf-8 /std:c++17 #include <stdio.h> #include <iostream> int main(cli::array<System::String ^> ^args) { System::Console::WriteLine("Managed 안녕하세요?"); setlocale(LC_ALL,""); std::wcout << L"Native 안녕하세요?" << std::endl; wprintf(L"Traditional C 안녕하세요?\n"); return 0; }
C# Hello

using System; namespace GeneralHelloApp { class Program { static void Main(string[] args) { Console.WriteLine("Hello, world!"); } } }
C# 한글 Hello

using System; namespace GeneralHelloApp { class Program { static void Main(string[] args) { Console.WriteLine("안녕하세요?"); } } }
F# Hello

printfn "Hello, world!"
F# 한글 Hello

printfn "안녕하세요?"
Java Hello

public class Hello { public staic void main(String[] args) { System.out.println("Hello, world!"); } }
Java 한글 Hello

public class Hello { public staic void main(String[] args) { System.out.println("안녕하세요?"); } }
Python Hello

print("Hello, world!")
Python 한글 Hello

print("안녕하세요?")
Python2 Hello

print "Hello, world!"
Python2 한글 Hello

print "안녕하세요?"
Ruby Hello

print "Hello, world!\n"
Ruby 한글 Hello

print "안녕하세요?\n"
PHP Hello

print("Hello, world!\n")
PHP 한글 Hello

print("안녕하세요?\n")
Lua Hello

print("Hello, world!")
Lua 한글 Hello

print("안녕하세요?")
Groovy Hello

println("Hello, world!")
Groovy 한글 Hello

println("안녕하세요?")



© SCRIPTS.PE.KR Since 22th Jun. 2019