• + 6 comments

    What have you imported for this code?

    public class Solution {
    
        public static void main(String[] args) {
            Scanner input = new Scanner(System.in);
            for (int i = 1; i <= 10 && input.hasNextInt(); i++) {
                int n = input.nextInt();
                System.out.printf("%d x %d = %d\n", n, i, (n*i));
            }
        }
    }
    

    Mine wont work^^?