title: Create a java program to display multiples of a number
body: <p>I'm trying to Write the main method of a Java program that has the user enter two integers, i and n. If either integer is less than 2, output “Please enter numbers above 1.” Otherwise, output the n positive multiples of i, separated by spaces.</p>
  
  <p>I'm close but can't figure out how to do display the multiples.</p>
  
  <p>Here's what a sample run should look like: </p>
  
  <p>Enter i: 4</p>
  
  <p>Enter n: 6</p>
  
  <p>6 multiples of 4 are: 8 12 16 20 24 28</p>
  
  <pre><code>import java.util.*;
  public class HW5Problem3 {
     public static void main (String [] args) {
  
        int i = 0;
        int n = 0;
  
        Scanner input = new Scanner(System.in);
  
           System.out.print("Enter i: ");
           i = input.nextInt();
           System.out.print("Enter n: ");
           n = input.nextInt();
  
           if ((i &lt;= 1) || (n &lt;= 1)) {
              System.out.println("Please enter numbers above 1");
              System.exit(1);
           }
  
           System.out.print(n + " multiples of " + i + " are: ");
  
     }
  }
  </code></pre>