<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Hello,<br>I was trying some simple programs that use the input statement on Scilab 6.0.0, and I got unexpected behaviour. Here is a test:<pre style="font-family:Monospaced;font-style:normal;font-size:12.0;"><font color="#000000">n</font> <font color="#5c5c5c">=</font> <font color="#000000">input</font><font color="#4a55db">(</font><font color="#bc8f8f">"</font><font color="#bc8f8f">n = </font><font color="#bc8f8f">"</font><font color="#4a55db">)</font>
<font color="#a020f0">while</font> <font color="#000000">n</font> <font color="#5c5c5c">></font> <font color="#bc8f8f">0</font>
<font color="#000000">n</font> <font color="#5c5c5c">=</font> <font color="#000000">input</font><font color="#4a55db">(</font><font color="#bc8f8f">"</font><font color="#bc8f8f">n = </font><font color="#bc8f8f">"</font><font color="#4a55db">)</font>
<font color="#a020f0">end</font>
<font color="#32b9b9">printf</font><font color="#4a55db">(</font><font color="#bc8f8f">"</font><font color="#bc8f8f">\nThanks</font><font color="#bc8f8f">"</font><font color="#4a55db">)</font></pre><br>Here is the result of this program on Scilab 6.0.0 console with input 1, 2, 3, 4 and 0:<br><font face="Default Monospace,Courier New,Courier,monospace"><br>n = <br>1<br><br>n = <br>--> 2<br>n = <br>3<br><br>n = <br>4<br><br>n = <br>0<br><br><br>Thanks<br>2+2<br> ans =<br><br> 4.</font><br><br>Compare this with the output on Scilab 5.5.2 console for the same input:<br><br><font face="Default Monospace,Courier New,Courier,monospace">n = 1<br>n = 2<br>n = 3<br>n = 4<br>n = 0<br><br>Thanks</font> <br><br>This is much more what one should expect from this litle program. Remark that on 6.0.0 console<br>1) There is a disturbing new line after printing the input statement message<br>2) There is a spurious apearance of the console prompt "-->" after the first execution of input statement<br>3) The console prompt "-->" does not appear after the end of program execution.<br><br>I am using Scilab on a Windows 10 system.<br><br>Thanks for your attention.<br>Osvaldo<br><br><pre style="font-family:Monospaced;font-style:normal;font-size:12.0;"><font color="#000000"><br></font><font color="#4a55db"></font></pre><div></div></font>