Comments (2)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Joe M
Level 47 , Owings Mills, United States
28 December 2020, 19:51
Kemka stay in "Syntax" if you can and move to "Core" when you have completed Syntax. You are doing very. very well! I am proud of your work. Keep hammering away and let me know if there are things I can help clarify. I highly recommend the Alex Lee videos on youtube which do a great job cuting through bs and jargon and just explaining stuff. Alex helped my AP Java class last year and the students there found his videos really helpful.
Joe M
Level 47 , Owings Mills, United States
28 December 2020, 19:48
package com.codegym.task.task03.task0314;

/*
Multiplication table
Multiplication table
Display a 10 x 10 multiplication table in the following form:
1 2 3 4 …
2 4 6 8 …
3 6 9 12 …
4 8 12 16 …
…


Requirements:
1. The program should output text.
2. The displayed text should contain 10 lines.
3. Each displayed string must contain 10 numbers separated by spaces.
4. The displayed numbers must form a multiplication table.
*/

public class Solution {
    public static void main(String[] args) {
        for (int i =1; i <=10; i++){
            System.out.print(i + " " + (2 * i) + " " + (3 * i) + " " + (4 * i) + " " + (5 * i) + " ");
            System.out.println((6 *i + " " + (7 * i) + " " + (8 * i) + " " + (9 * i) + " " + (10 * i) + " "));
        }
    }
}