Print Two's Table By Using One Dimensional Array Or Array In Java (Click ↑ On Full View)

Print Two's Table By Using One Dimensional Array Or Array In Java

  -------------------------------------------------------------

             package helloJava;

            public class OneD

{
   public static void main(String[] args)
{
        int[] table = new int[11];
      for(int i=1; i<=table.length-1; i++)
    {
            System.out.println(i*2);
    }
      } 

}





Output :


2

4

6

8

10

12

14

16

18

20



Comments

Popular posts from this blog

Mr. Myers wants to edit the marks assigned to the questions

Genral Ability

Object Orinted Programing