Search code examples
inputpromptscilab

Using input function in Scilab prompt user multiple times


so I'm learning the basics of Scilab and i was trying to figure out how the Input function works but i keep getting a bizarre problem.

Here's my code:

    A = input("Enter value of A: ")
    B = input("Enter value of B: ")
    disp("The value of A is: " +string(A))
    disp("The value of B is: " +string(B))

And This's what i get:

   Enter value of A: 
   6
   Enter value of A: 
   --> 5
   Enter value of A: 
   5



  Enter value of B: 
  8


   The value of A is: 5

   The value of B is: 8

I have no idea why i was prompted 3 times to enter the value of A. A lil bit of help understanding this please, thank you.


Solution

  • It was actually a bug brought by Scilab 6. It is fixed for years now (@https://gitlab.com/scilab/scilab/-/issues/14424 )