mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merged with upstream. Updated M (aka MUMPS) detection to use the new bayesian / samples method.
This commit is contained in:
19
samples/M/forloop.m
Normal file
19
samples/M/forloop.m
Normal file
@@ -0,0 +1,19 @@
|
||||
start1 ; entry label
|
||||
set a=1
|
||||
set b=20
|
||||
set c=2
|
||||
set sum=0
|
||||
for i=a:c do quit:'(i<b)
|
||||
. set sum=sum+i
|
||||
. write i," : ",sum,!
|
||||
quit
|
||||
|
||||
start2 ; entry label
|
||||
set a=1
|
||||
set b=20
|
||||
set c=2
|
||||
set sum=0
|
||||
for i=a:c:b do
|
||||
. set sum=sum+i
|
||||
. write i," : ",sum,!
|
||||
quit
|
||||
Reference in New Issue
Block a user