0

Can someone tell me how to fix this please?

public class NestedNumber
{
  public static void main(String[] args)
  {
    for (int i=1; i<=5; i++)
    {
      System.out.println();
      for (int j=1; j<=i; j++)
      {
        System.out.print(j);
      }
    }
  System.out.println();
 }
}
2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Ezzaral
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.