Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: java

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    4
    My Mood
    Cheerful
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question java

    hello,
    can anyone help by providing the code for the following outputs using nested for loop in java ?

    0
    1 0
    0 1 0
    1 0 1 0
    0 1 0 1 0




    1
    2 3
    4 5 6
    7 8 9 10


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: java

    We'll help you with your code. Post it, let us know what problems you're having, post any errors, ask specific questions, and we'll help.

  3. The Following User Says Thank You to GregBrannon For This Useful Post:

    Shreyas123 (September 28th, 2013)

  4. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    4
    My Mood
    Cheerful
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: java

    Please give the code for the above given outputs?

  5. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: java

    To the cornfield with you.

  6. #5
    Member
    Join Date
    Sep 2013
    Posts
    70
    Thanks
    1
    Thanked 13 Times in 13 Posts

    Default Re: java

    \\\\for loop////
    0 
    1 0 
    0 1 0
    1 0 1 0 
    0 1 0 1 0
    \\\\for loop////
    1 
    2 3
    4 5 6
    7 8 9 10

    Please post your attempt at solving the solutin and then we will help you with the errors you get. You don't go to a job and simply tell them give me money you gotta work for it