summaryrefslogtreecommitdiffstats
path: root/src/example.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/example.txt')
-rw-r--r--src/example.txt20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/example.txt b/src/example.txt
index eb453b2..bbc8973 100644
--- a/src/example.txt
+++ b/src/example.txt
@@ -1,13 +1,9 @@
-int ::temp
-int::a
-int::b
-int::i
-a=1
-b=1
-i=0
-do i=0,10
-print*,a," " endprint
-temp =a+b
-a=b
-b=temp
+int::nfact
+int::n
+nfact=1
+n=1
+do while(n<10)
+nfact=nfact*n
+n=n+1
+print*,n," ", nfact endprint
end do \ No newline at end of file