• + 0 comments

    Hi Guys Solution for the Problem is Here:

        int N = Integer.parseInt(bufferedReader.readLine().trim());
    
        // Loop from 1 to 10 and print the multiples of N
        for (int i = 1; i <= 10; i++) {
            // Calculate the result of N * i
            int result = N * i;
    
            // Print the result in the required format
            System.out.println(N + " x " + i + " = " + result);
        }
    
        bufferedReader.close();
    }
    

    }