• + 0 comments

    import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner s = new Scanner(System.in);

        int num = s.nextInt();
    
        for(int i = 1;i<=10;i++)
        {
            int result = num * i;
            //System.out.println(num + " x " + i + " = " + result);
            System.out.printf("%d x %d" + " = " + result,num,i);
            System.out.println();
    
        }
    }
    

    }