At this point I feel like it's something stupid that I'm overlooking but I've been working on this one almost since I woke up. Now I have to go to work so I'm like smacking myself because I can't figure out WHAT I'm doing wrong. Very frustrating for me right now.
package com.codegym.task.task03.task0314;
/*
Multiplication table
*/
public class Solution {
public static void mult(int a) {
for (int i = 1; i <= 10; i++) {
System.out.print(a * (i + 1) + " ");
}
System.out.println(" ");
}
public static void main(String[] args) {
mult(1);
mult(2);
mult(3);
mult(4);
mult(5);
mult(6);
mult(7);
mult(8);
mult(9);
mult(10);
}
}
package com.codegym.task.task03.task0314;
/*
Multiplication table
*/
public class Solution {
public static void mult(int a) {
for (int i = 1; i <= 10; i++) {
System.out.print(a * (i + 1) + " ");
}
System.out.println(" ");
}
public static void main(String[] args) {
mult(1);
mult(2);
mult(3);
mult(4);
mult(5);
mult(6);
mult(7);
mult(8);
mult(9);
mult(10);
}
}