Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   Java Code Help (https://www.askmehelpdesk.com/showthread.php?t=814940)

  • Aug 7, 2015, 08:29 AM
    BellaElvyra
    Java Code Help
    What is the output of the code below?


    for (int I =1; I<5; I++)
    {
    for (int j=1; j<=i; j++)
    {
    System.out.print("* ");
    }
    System.out.println();
    }
  • Aug 7, 2015, 12:24 PM
    CravenMorhead
    A bunch of "* ", on many different lines.

    What do you think the output will be?

  • All times are GMT -7. The time now is 12:20 PM.