Check out example codes for "Given an integer, , print its first multiples. Each multiple (where ) should be printed on a new line in the form: N x i = result.". It will help you in understanding the concepts better.

Code Example 1

int sum;
        
        for(int i = 1; i <= 10; i++){
            sum = n * i;
            System.out.println(n + " x " + i + " = " + sum);
        }

Learn ReactJs, React Native from akashmittal.com