Menu
Question Index
...

Write a program to print the multiplication table of the given number. Use System.out.println or System.out.print for printing.

Input (Integer) Output to be printed (Spaces before and after 'x' and '=' are also important in the output)
4 4 x 1 = 4
4 x 2 = 8
4 x 3 = 12
4 x 4 = 16
4 x 5 = 20
4 x 6 = 24
4 x 7 = 28
4 x 8 = 32
4 x 9 = 36
4 x 10 = 40
5 5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50



class MultiplicationTable
{
    public static void main(String s[])
    {
        printMultiplicationTable(5);

    }


    public static void printMultiplicationTable(int number)
    {
    }

}

Doubts

Problems

Topic: for Loop In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App