Create table of any number by using this program



     Create table of any number by using this program


Here in following program we create the table for number 16.

class table
{
public static void main(String args[])
{

int j=16,table=0;

System.out.println("leap years are");
for(int i=1;i<11;i++)
{
table=i*j;
System.out.println(+table);
}

}
}

You can get table for any number just replace num 16

No comments:

Post a Comment