hello-world-in-a-nested-loop.mps is added

This commit is contained in:
programarivm 2019-09-23 19:40:39 +01:00
parent 6b1c4b79c8
commit 487d87a687
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,3 @@
for i=1:1:2 do
. for j=1:1:5 do
.. write i,":",j," Hello world",!

View File

@ -71,6 +71,19 @@ The resulting interpreter is located in `/usr/bin/mumps`.
Hello world Hello world
Hello world Hello world
Hello world Hello world
### [`hello-world-in-a-nested-loop.mps`](https://github.com/programarivm/gpl-mumps-by-example/blob/master/01-the-very-basics/hello-world-in-a-nested-loop.mps)
$ mumps hello-world-in-a-nested-loop.mps
1:1 Hello world
1:2 Hello world
1:3 Hello world
1:4 Hello world
1:5 Hello world
2:1 Hello world
2:2 Hello world
2:3 Hello world
2:4 Hello world
2:5 Hello world
--- ---
### Contributions ### Contributions