From 13c44054b21d26782e98a52e9a114250ab8307ff Mon Sep 17 00:00:00 2001 From: AidenRushbrooke <72034940+AidenRushbrooke@users.noreply.github.com> Date: Thu, 9 Dec 2021 02:30:57 +0000 Subject: Added example program of each main feature --- src/examples/subroutine.ft | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/examples/subroutine.ft (limited to 'src/examples/subroutine.ft') diff --git a/src/examples/subroutine.ft b/src/examples/subroutine.ft new file mode 100644 index 0000000..58171b8 --- /dev/null +++ b/src/examples/subroutine.ft @@ -0,0 +1,9 @@ +program subroutineExample +calc(3,4,5) +end program subroutineExample + +subroutine calc(int a,int b,int c) +int::total +total=a*b*c +print*,total +end \ No newline at end of file -- cgit v1.2.3