Turn Desktop View Off
by Dinesh Thakur

 

import java.io.*;
	
	

class TableNumber
{
            public static void main(String args[] )
            throws IOException
            {
                        BufferedReader k=new BufferedReader(new InputStreamReader
                                    (System.in));
                        String h;
                        int i,n;
                        System.out.print("Enter a number : ");
                        h=k.readLine( );
                        n=Integer.parseInt(h);
                        for(i=1;i<=10;i++)
                        {
                                    System.out.println(n+ " * "+i+" = "+n*i);
                        }
            }
}

Print the table of an input number up till 10 times