Java Program to
Display Multiplication Table
Class MultiTable{
public
static void main(String args[]){
int
number = Integer.parseInt(args[0]);
System.out.println("*****MULTIPLICATION
TABLE*****");
for(int
i=1;i<=number;i++){
for(int
j=1;j<=number;j++){
System.out.print("
"+i*j+" ");
}
System.out.print("\n");
}
}
}
No comments:
Post a Comment