Multiplication Table

 Multiplication Table

Problem Description


n mathematics, a multiplication table (sometimes, less formally, a times table) is a mathematical table used to define a multiplication operation for an algebraic system.


The decimal multiplication table was traditionally taught as an essential part of elementary arithmetic around the world, as it lays the foundation for arithmetic operations with base-ten numbers. Many educators believe it is necessary to memorize the table up to 9 9


In 493 AD, Victorius of Aquitaine wrote a 98-column multiplication table which gave (in Roman numerals) the product of every number from 2 to 50 times and the rows were "a list of numbers starting with one thousand, descending by hundreds to one hundred, then descending by tens to ten, then by ones to one, and then the fractions down to 1/144."


In his 1820 book The Philosophy of Arithmetic, mathematician John Leslie published a multiplication table up to 99 99, which allows numbers to be multiplied in pairs of digits at a time. Leslie also recommended that young pupils memorize the multiplication table up to 25 25. The illustration below shows a table up to 12 12, which is a size commonly used in schools.


Input:

Only element

Output:

Print the multiplication till first 10 elements

Logic Test Case 1


Input (stdin)

5


Expected Output


5


10


15


20


25


30


35


40


45


50

Logic Test Case 2


Input (stdin)

17


Expected Output


17


34


51


68


85


102


119


136


153


170




Code Area


import java.io.*;

import java.util.*;

public class TestClass {

public static void main(String[] args) { 

       Scanner sc=new Scanner(System.in);

      

       int num1=sc.nextInt();

       for(int i=0;i<10;i++)

       { 

         System.out.println(num1*(i+1));

        }

}

}



Post a Comment

0 Comments