#include "iostream" using namespace std; int main() { cout << "Hello world!" ; return 0; }
2. JAVA
import java.lang.String; import java.lang.System; import java.lang.Exception; public final class helloworld { public static void main(String[] args) throws Exception { System.out.println("hello world"); } }
3. PYTHON
#!env python3 import sys class Hello(): def __init__(self): self.names = 'Myoungsig ' def sayHello(self): print(self.names + ' Hello World!') if __name__ == '__main__': myHello = Hello() myHello.sayHello()
4. Bash
#!env bash echo "hello world!"
5. C
#include "stdlib.h" #include "stdio h" int main(int argc, char **argv) { printf("hello world! \n"); return 0; }6. SQL
select 'hello world!' as cmd from dual ;
7. PL/SQL
set serveroutput on declare msg varchar2(20) := 'Hello World' begin dbms_output.put_line(msg); end; /
댓글 없음:
댓글 쓰기