You are viewing a single comment's thread. Return to all comments →
Scanner sc = new Scanner(System.in); //System.out.print("Input a number: "); int num1 = sc.nextInt();
for (int i = 0; i < 10; i++) { System.out.println(num1 + " x " + (i + 1) + " = " + (num1 * (i + 1)));
Seems like cookies are disabled on this browser, please enable them to open this website
Java Loops I
You are viewing a single comment's thread. Return to all comments →
Scanner sc = new Scanner(System.in); //System.out.print("Input a number: "); int num1 = sc.nextInt();
for (int i = 0; i < 10; i++) { System.out.println(num1 + " x " + (i + 1) + " = " + (num1 * (i + 1)));