title: Finding the derivative of a polynomial using arrays in java
body: <p>I am new to programming and I have trouble trying to program the derivative of a polynomial using arrays. Below is what I have to get the user's input.</p>
  
  <pre><code>Scanner sc=new Scanner(System.in);
  System.out.print("Enter the degree: ");
  int degree = sc.nextInt();
  System.out.print("Enter "+(degree+1)+" coefficients: ");
  double[] C = new double[degree+1];
  for(int i=0; i&lt;C.length;i++) {
      C[i]=sc.nextDouble();
  }
  </code></pre>