<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
[Let's try to answer without technical reply. Hope to not break or
shift the thread]
<p> </p>
<blockquote type="cite">
<div class="moz-cite-prefix">On 2023-01-11 22:33:10, Stefan Du
Rietz wrote: <br>
</div>
<br>
<font face="Arial">
<pre style="font-family: courier, "courier new", monospace; font-size: 14px; white-space: pre-wrap; overflow-wrap: break-word; margin: 0em; color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Too print all elements, the argument must be a column vector: fac'
And to avoid repeating the first wording, you can print it separately:
--> mprintf("Factors of 1729 are: "), mprintf("%d ", fac')
Factors of 1729 are: 7 13 19
Stefan
</pre>
</font></blockquote>
<font face="Arial"> </font>
<p>Yes, i have well read your previous answer. I was just providing
an alternative.<br>
<br>
That was not the initial querry, but write() allows to iterate on
rows AND columns in the same way, adapting to free numbers of rows
AND columns with the same unique simple syntax:</p>
--> fac = grand(3,4,"uin",0,9)<br>
fac = <br>
2. 5. 9. 3.<br>
2. 4. 5. 5.<br>
4. 1. 8. 5.<br>
<br>
--> write(%io(2), fac, "(''The row is:'', 10(i2,2x))")<br>
The row is: 2 5 9 3<br>
The row is: 2 4 5 5<br>
The row is: 4 1 8 5<br>
<br>
One could dream of extending the C syntax with this Fortran
feature...<br>
The first days of January are a good for wishes :-)<br>
<br>
Samuel<br>
</body>
</html>