Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Hello, World! program in OCaml #121

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions hello_world.adb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- hello_world.adb
with Ada.Text_IO; use Ada.Text_IO;

procedure Hello_World is
begin
Put_Line("Hello, World!");
end Hello_World;

5 changes: 5 additions & 0 deletions hello_world.cob
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
IDENTIFICATION DIVISION.
PROGRAM-ID. HelloWorld.
PROCEDURE DIVISION.
DISPLAY 'Hello, World!'.
STOP RUN.
1 change: 1 addition & 0 deletions hello_world.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print_endline "Hello, World!"
3 changes: 3 additions & 0 deletions hello_world.rpg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Dcl-S HelloMsg VARCHAR(50) Inz('Hello, World!');

*Display HelloMsg
3 changes: 3 additions & 0 deletions hello_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BEGIN
DBMS_OUTPUT.PUT_LINE('Hello, World!');
END;