I can make the table using a nested for loop with no problem. I haven't had the same success using a while loop. I'm getting too large of a table. Can anyone tell me what I can do to fix this problem? Thanks in advance.
package com.codegym.task.task04.task0434;
/*
Multiplication table
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
int i = 1;
int j = 1;
while (i<=10)
{
while(j<=10)
{
System.out.print(i*j + " ");
i++;
}
j=1;
System.out.println();
}
}
}