• + 0 comments

    For Java15 Platform

    I wrote the code from scratch just to get more practice

    import java.util.Scanner;
    
    class Solution
    {
        public static void main(String args[])
        {
            Scanner sc = new Scanner(System.in);
            int N = sc.nextInt();
            sc.close();
            
            for(int i=1; i<=10; i++)
            {
                System.out.println(N + " x " + i + " = " + N*i);
            }
        }
    }