Printing letters in triangle pattern

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • harishram007
    New Member
    • Jul 2007
    • 4

    Printing letters in triangle pattern

    please can u help me out in the following patterns
    A
    ABA
    ABCBA
    ABCDCBA
    ABCDEDCBA
    ABCDEFEDCBA

    PATTERN 2:
    4 4 4 4
    3 3 3
    2 2
    1
    2 2
    3 3 3
    4 4 4 4

    PATTERN 3:
    PASCAL'S TRIANGLE..



    THIS IS URGENT PLZZZZ HELP ME OUT ALLL HAV 2 BE DONE USING LOOPS NO ARAYS AND USE ONLY INT,DOUBLE,CHAR ,PLZZZZZZZ
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by harishram007
    please can u help me out in the following patterns
    A
    ABA
    ABCBA
    ABCDCBA
    ABCDEDCBA
    ABCDEFEDCBA

    PATTERN 2:
    4 4 4 4
    3 3 3
    2 2
    1
    2 2
    3 3 3
    4 4 4 4

    PATTERN 3:
    PASCAL'S TRIANGLE..



    THIS IS URGENT PLZZZZ HELP ME OUT ALLL HAV 2 BE DONE USING LOOPS
    So you expect me or someone else to give you the working code which you are
    going to hand in (that's cheating) and you hope to pass your exam this way?
    Imagine that you get a programming job somewhere; I pity your future colleagues
    then because they have to help you out all the time because you cheated in the
    past and are not capable to do any programming work at all. (that's fraud).

    You give it a try first and when you're stuck we might help you out but we don't
    do your homework for you.

    kind regards,

    Jos

    ps. I visit Sun's Java developer forums as well and they don't like cheaters there
    either. They're more nasty though: they try to track down your school and inform
    your teacher about your cheating attempts.

    Comment

    • harishram007
      New Member
      • Jul 2007
      • 4

      #3
      These codes hav been tried many times but i fail to understand...pl zzz help

      Comment

      • scruggsy
        New Member
        • Mar 2007
        • 147

        #4
        Originally posted by harishram007
        These codes hav been tried many times but i fail to understand...pl zzz help
        If you've tried them many times before, then post one of your attempts so someone can advise you.
        Isn't it nice that a forum exists where people actually enjoy helping you with your homework?
        Don't expect anyone to volunteer to do your work for you, though. You won't learn anything that way.

        Hope this helps.

        Comment

        • sicarie
          Recognized Expert Specialist
          • Nov 2006
          • 4677

          #5
          Originally posted by harishram007
          These codes hav been tried many times but i fail to understand...pl zzz help
          Have you read the Posting Guidelines? I think you might find them illuminating and incredibly helpful.

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by sicarie
            Have you read the Posting Guidelines? I think you might find them illuminating and incredibly helpful.
            Ah, now sicarie. This is one of those times when you don't want to point someone to the posting guidelines.

            Comment

            • JosAH
              Recognized Expert MVP
              • Mar 2007
              • 11453

              #7
              Originally posted by r035198x
              Ah, now sicarie. This is one of those times when you don't want to point someone to the posting guidelines.
              <high squeaky voice>
              Take him to the attic!
              </high squeaky voice>

              kind regards,

              Jos ;-)

              Comment

              • anubhavit
                New Member
                • Jul 2007
                • 5

                #8
                <code snipped>

                This is the code for
                A
                ABA
                ABCBA
                ABCDCBA
                .....

                Please don't spoonfeed the OP; we don't do boilerplate homework code here,
                it doesn't help anyone at all.

                kind regards,

                Jos

                Comment

                Working...