Menu
Question Index
...

Write a program to get the multiplication tables array for a given number.

Input (Integer) Output (Integer array of size 10)
7 {7, 14, 21, 28, 35, 42, 49, 56, 63, 70 }
5 {5, 10, 15, 20, 2, 30, 35, 40, 45, 50 }
11 {11, 22, 33, 44, 55, 66, 77, 88, 99, 110 }



class MultiplicationTablesArray
{
    public static void main(String s[])
    {
        int[] table7 = getMultiplicationTablesArray(7);
        
        for(int i = 0; i < table7.length; i++)
        {
            System.out.print(table7[i] +", ");
        }

    }


    public static int[] getMultiplicationTablesArray(int input)
    {
    }

}

Doubts

Problems

Topic: Learn Arrays And Loops

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App