You are here:   HomeJava ProgrammingControl Structures in JavaIf Else If Ladder, if..else ....if else statement in Java Example
by Dinesh Thakur Category: Control Structures



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

Print the table of an input number up till 10 times

What's New and Popular