Java Program to print table


This java code will print table of numbers from 1 to 10.

class Table
{
public static void main(String args[])
{
int n,i;
for(n=1;n<=10;n++)
{
for(i=1;i<=10;i++)
{
System.out.print(i*n+”  “);
}
System.out.println();
}
}
}

Add Comment