summaryrefslogtreecommitdiffstats
path: root/src/examples/conditional.ft
diff options
context:
space:
mode:
authorAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-12-09 02:30:57 +0000
committerAidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com>2021-12-09 02:30:57 +0000
commit13c44054b21d26782e98a52e9a114250ab8307ff (patch)
tree8426476b4daeee01b85cc3f414d04335dbf0a87d /src/examples/conditional.ft
parent560a48eebf4f74ae1a21d5cfbb3b55477d7c1356 (diff)
downloadesotericFORTRAN-13c44054b21d26782e98a52e9a114250ab8307ff.tar.gz
esotericFORTRAN-13c44054b21d26782e98a52e9a114250ab8307ff.zip
Added example program of each main feature
Diffstat (limited to 'src/examples/conditional.ft')
-rw-r--r--src/examples/conditional.ft11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/examples/conditional.ft b/src/examples/conditional.ft
new file mode 100644
index 0000000..6d3f79d
--- /dev/null
+++ b/src/examples/conditional.ft
@@ -0,0 +1,11 @@
+program conditional
+int::a
+int::b
+a=5
+b=7
+if a>=b then
+print*,a," is greater than or equal to ",b
+else
+print*,a," is less than ",b
+end if
+end program conditional \ No newline at end of file