0

output should look like this

         *
        ***
       *****
      *******
     *********
      *******
       *****
        ***
         *

         and seond one 

         ***************
          ***************
         ***************
          ***************
         ***************



         Thank you guys in advance!
5
Contributors
12
Replies
27
Views
3 Years
Discussion Span
Last Post by sanjulovers
0

Here's a place to start. In particular look at the post I made. The code isn't exactly like you describe you want. But the principles are explained and the code is simple and easy to adapt.

0

the code is easy. But you have to develope the code and we are glad to clear the doubts and correct the program.

0

@soche123, your attitude stinks. We don't care if you NEED this badly. You have failed to do anything to help yourself. Guess what, if you're planning a career in programming being able to think for yourself is an absolute must.

You clearly do not understand the elements of simple logic and for loops. That in itself isn't a problem. It's tricky for first timers. What I suggested was to draw a flow chart to help you understand it, visualise it.

That should be your next step, specifically look at the flow chart for a nested for loop.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.