import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
System.out.print("Enter a number (N): ");
int n=in.nextInt();
int num=1;
for(int i=n;i>=1;i--)
{
for(int j=n;j>=1;j--)
{
System.out.print((j*num)+"\t");
}
System.out.println();
num++;
}
}
}
Comments
Leave a comment