i got the correct output but its displaying fail
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 a = 1;
while(a <= 10)
{
int b = 1;
while(b <= 10)
{
System.out.print(a * b + " ");
if(b <= 10)
{
b++;
}
}
if(a<10)
{
System.out.println("\n");
}
a++;
}
}
}