aboutsummaryrefslogtreecommitdiff
path: root/challenge-108/abigail
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2021-04-15 16:49:53 +0200
committerAbigail <abigail@abigail.be>2021-04-15 16:49:53 +0200
commit2d6e93233290a9ee148739aec6dfe3b437ec3598 (patch)
tree34d8739e9fc886a7d1579aaf36183c382c9411c0 /challenge-108/abigail
parentcb227b49e4bfc9affaa09053eec6ad44509a3b08 (diff)
downloadperlweeklychallenge-club-2d6e93233290a9ee148739aec6dfe3b437ec3598.tar.gz
perlweeklychallenge-club-2d6e93233290a9ee148739aec6dfe3b437ec3598.tar.bz2
perlweeklychallenge-club-2d6e93233290a9ee148739aec6dfe3b437ec3598.zip
Cobol, Csh, Erlang, Forth and Fortran solutions for week 108, part 2
Diffstat (limited to 'challenge-108/abigail')
-rw-r--r--challenge-108/abigail/cobol/ch-2.cb14
-rw-r--r--challenge-108/abigail/csh/ch-2.csh11
-rw-r--r--challenge-108/abigail/erlang/ch-2.erl15
-rw-r--r--challenge-108/abigail/forth/ch-2.fs5
-rw-r--r--challenge-108/abigail/fortran/ch-2.f9012
5 files changed, 57 insertions, 0 deletions
diff --git a/challenge-108/abigail/cobol/ch-2.cb b/challenge-108/abigail/cobol/ch-2.cb
new file mode 100644
index 0000000000..c5aff7fdf8
--- /dev/null
+++ b/challenge-108/abigail/cobol/ch-2.cb
@@ -0,0 +1,14 @@
+IDENTIFICATION DIVISION.
+PROGRAM-ID. BELL.
+
+*>
+*> See ../README.md
+*>
+
+*>
+*> Run as: cobc -xF -o ch-2.o ch-2.cb; ./ch-2.o
+*>
+
+PROCEDURE DIVISION.
+ DISPLAY "1, 1, 2, 5, 15, 52, 203, 877, 4140, 21147".
+ STOP RUN.
diff --git a/challenge-108/abigail/csh/ch-2.csh b/challenge-108/abigail/csh/ch-2.csh
new file mode 100644
index 0000000000..ea424ce6b9
--- /dev/null
+++ b/challenge-108/abigail/csh/ch-2.csh
@@ -0,0 +1,11 @@
+#!/bin/csh
+
+#
+# See ../README.md
+#
+
+#
+# Run as: csh ch-2.csh
+#
+
+echo "1, 1, 2, 5, 15, 52, 203, 877, 4140, 21147"
diff --git a/challenge-108/abigail/erlang/ch-2.erl b/challenge-108/abigail/erlang/ch-2.erl
new file mode 100644
index 0000000000..f407e66fde
--- /dev/null
+++ b/challenge-108/abigail/erlang/ch-2.erl
@@ -0,0 +1,15 @@
+%
+% See ../README.md
+%
+
+%
+% Run as: ln ch-2.erl ch2.erl
+% erl -compile ch2
+% erl -noshell -s ch1 main -s init stop
+%
+
+-module (ch2).
+-export ([main/0]).
+
+main () ->
+ io:fwrite ("1, 1, 2, 5, 15, 52, 203, 877, 4140, 21147\n").
diff --git a/challenge-108/abigail/forth/ch-2.fs b/challenge-108/abigail/forth/ch-2.fs
new file mode 100644
index 0000000000..8b234c922e
--- /dev/null
+++ b/challenge-108/abigail/forth/ch-2.fs
@@ -0,0 +1,5 @@
+\
+\ See ../README.md
+\
+
+.( 1, 1, 2, 5, 15, 52, 203, 877, 4140, 21147)
diff --git a/challenge-108/abigail/fortran/ch-2.f90 b/challenge-108/abigail/fortran/ch-2.f90
new file mode 100644
index 0000000000..112f6f2cd0
--- /dev/null
+++ b/challenge-108/abigail/fortran/ch-2.f90
@@ -0,0 +1,12 @@
+!
+! See ../README.md
+!
+
+!
+! Run as: gfortran -o ch-2.o ch-2.f90; ./ch-2.o
+!
+
+program ch2
+ implicit none
+ write (*, *) "1, 1, 2, 5, 15, 52, 203, 877, 4140, 21147"
+end