Program To Create Table of 2 to 10

/*  Program To Create Table of  2  to 10 */
import java.io.*;
class Tables
{
 public static void main(String[] arg)
 {
  for(int i=1;i<=10;i++)
   {
    
    for(int j=2; j<=10;j++)
    {
     System.out.printf("%3d |",(j*i));
    }  
   System.out.println(" "); 
  }
  }
}

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|