title: How to take multiple input from user Scilab
body: <p>I am trying to make a program to print maximum of 5 numbers using for loop and taking number input from user.</p>
  
  <p>I know I can do it via <code>max</code> command by having <code>a =[1,2,3,4,5]; and max(a);</code>. 
  But trying out with for loop.</p>
  
  <p>I don't know how to take an array in Scilab (I know their is matrix that we can take but don't know how to take input from user in matrix or in array in Scilab)</p>
  
  <pre><code>`a = [1,2,3,4,5];` //works fine but i want user should input numbers.
  </code></pre>
  
  <p>I know one way is using</p>
  
  <pre><code>a = input("First number:");
   b = input("Second number:"); ... and so on upto fifth number 
  // i want to make it short like using array in C language
  int a[5];
  printf("Enter numbers");
  for(i=0;i&lt;5;i++)
  scanf("%d",&amp;a[i]);
  // Here in Scilab i don't know how i write it??
  if I use int a[5]; i get error Undefined variable: a --error4
  </code></pre>
  
  <p>I know i can use mprintf &amp; msscanf but question is i am not able to declare or take array data from user's end.
  Please suggest me some way to make this program.</p>
  
  <p>Also how to declare &amp; take matrix data from user and declare &amp; take array data from user.</p>