Would someone please helpe me out and tell me where i'm missing up with this code.? I want the result(output) in order to be table of row and column. but i was trying and trying but i couldn't.
import java.util.Scanner;
public class MultiTable {
public static void main(String[] args) {
Scanner input = new Scanner(System.in); // here the program will start.
int num = -1;
while(num <=0 || num > 10){ // while loop and collecting numbers between 1 and 10.
System.out.print("Enter an integer between 1 and 10:");
num = input.nextInt();
}
System.out.println();
for(int i = 1; i<=num; i++)
System.out.println("\t"+ i);
System.out.println("\n");
for(int row=1; row<=num; row++){
System.out.println(row + "\t");
for(int tab=1; tab < row; tab++)
System.out.println("\t");
for(int col=row; col<=num; col++){
System.out.println(row*col + "\t");
} //end inter for loop
System.out.println();
} //end outer for loop
}
}