for loops

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chandi
    New Member
    • Aug 2007
    • 2

    for loops

    I want to print a star using for loops or while loops in java how can do that ?
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Originally posted by chandi
    I want to print a star using for loops or while loops in java how can do that ?
    First of all, please don't double post.
    Now, what exactly do you mean? Do you want to print the * symbol? Or are you looking for something a bit like this:

    __/\__
    \......../
    /_ ..._\
    ....\/

    (Dots just there, to create the correct form in this posting)

    Comment

    • Dhruv
      New Member
      • Aug 2007
      • 1

      #3
      HI moderator,

      i am new to these group and just wondering its bit different than other yahoo groups.

      just wondereing how can i take a look at each thread specially i am interseted in java realted questions only.. how can i do that.

      could you please email me on <removed>
      as i am new i don't know how to see reply. probably i will forget to check this thread if you reply in this thread.

      thanks
      Last edited by r035198x; Aug 27 '07, 06:26 AM. Reason: posting emails is against site rules

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by Dhruv
        HI moderator,

        i am new to these group and just wondering its bit different than other yahoo groups.

        just wondereing how can i take a look at each thread specially i am interseted in java realted questions only.. how can i do that.

        could you please email me on <removed>
        as i am new i don't know how to see reply. probably i will forget to check this thread if you reply in this thread.

        thanks
        If you can't read the threads then it's unlikely that you'll be able to learn anything here.

        If you do become able to read these threads then the Java related questions will be listed here.

        Comment

        • praveen2gupta
          New Member
          • May 2007
          • 200

          #5
          Originally posted by chandi
          I want to print a star using for loops or while loops in java how can do that ?
          Hi
          Use a Two for loop for this problem and them use System.out.prin tln("") to print the result on console. Set the loops accrding to the shape. You can print many types of shapes.

          Comment

          Working...