Search:

Type: Posts; User: m2msucks

Search: Search took 0.19 seconds.

  1. Replies
    7
    Views
    2,459

    Re: Using Nested Loops

    Ok thanks. I managed to fix my code and get the right output. Here it is.


    public class UsingLoops {
    public static void main(String[] args) {
    for (int line = 1; line <= 5; line++) {
    ...
  2. Replies
    7
    Views
    2,459

    Using Nested Loops

    Display the following: Using loops


    1
    21
    321
    4321
    54321
    This is my attempt.
Results 1 to 2 of 2