Yet another homework problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kakarla Durga Prasad
    New Member
    • Sep 2007
    • 3

    Yet another homework problem

    i want Java code for below output



    *
    * *
    * * *
    * * * *
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    Originally posted by Kakarla Durga Prasad
    i want Java code for below output



    *
    * *
    * * *
    * * * *
    Hey don't come with such problems here.
    You better to come here with some code and with specific problem.
    Try a code first then come here.
    Ok!

    Kind regards,
    Dmjpro.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by Kakarla Durga Prasad
      i want Java code for below output


      Code:
      .              *
                  *     *
                *     *     *
              *    *     *     *
      Look! The output changed! It was a Good Thing (tm) I passed by and corrected
      the way your output looked; just imagine if some poor soul had written code
      for you that produced that other output in your original post. All the effort would've
      been wasted. Why don't you give it a try yourself first?

      kind regards,

      Jos

      Comment

      • Nepomuk
        Recognized Expert Specialist
        • Aug 2007
        • 3111

        #4
        Originally posted by Kakarla Durga Prasad
        i want Java code for below output



        *
        * *
        * * *
        * * * *
        As you may have read (however, probably didn't), we shouldn't give you ready made answers (and it's good that way). In the guidelines, you'll even find a very similar example to yours. (But solved in C/C++.)

        If you're new to Java, read this article about free classes - it will help you to understand the basics and you will be able to solve the problem.

        If you get stuck or don't understand something, even after looking up some other sources (like the API from sun), feel free to ask here.

        Greetings,
        Nepomuk

        Comment

        • funga
          New Member
          • Sep 2007
          • 4

          #5
          I think you can write the nested for loop as follows........ ...
          <Code removed. Please read our POSTING GUIDELINES.

          MODERATOR>

          I think this will work.... he he ;) .....

          Comment

          Working...