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);
}
}
}
Comments
Post a Comment