# URGENT HELP NEEDED WITH Iterative statements – for loops

**URL:** <https://forum.kirupa.com/t/urgent-help-needed-with-iterative-statements-for-loops/256219>\
**Category:** programming\
**Created:** [April 1, 2008, 12:20am UTC](https://forum.kirupa.com/t/urgent-help-needed-with-iterative-statements-for-loops/256219 "2008-04-01T00:20:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayjarboi](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mayjarboi](https://forum.kirupa.com/u/mayjarboi)\
**Post date:** [April 1, 2008, 12:20am UTC](https://forum.kirupa.com/t/urgent-help-needed-with-iterative-statements-for-loops/256219/1 "2008-04-01T00:20:11Z")

</div>

[FONT=Times New Roman][SIZE=3][SIZE=1]i need a program which outputs a series of asterisks (\* - stars) to form the following pattern below.[/SIZE][/SIZE][/FONT]

[SIZE=3][FONT=Times New Roman][SIZE=1]i think in order [FONT=Times New Roman]to get the second half of the pattern you will need another set of **for loops** , this time counting down or you can try to change over the loop control and decrement after 5.[/FONT][/SIZE]  
[/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3][SIZE=1]The output should look like: (this is a short version, you should have 10 lines of stars)[/SIZE][/SIZE][/FONT]

> 

[FONT=Times New Roman][FONT=Times New Roman]_[/FONT]  
[FONT=Times New Roman]**[/FONT]  
[FONT=Times New Roman]**_[/FONT]  
[FONT=Times New Roman]_**[/FONT]  
[FONT=Times New Roman][/FONT]  
[FONT=Times New Roman][/FONT]  
[FONT=Times New Roman]\*\*\*\*\*[/FONT]  
[FONT=Times New Roman]**__[/FONT]  
[FONT=Times New Roman]_**[/FONT]  
[FONT=Times New Roman]**[/FONT]  
[FONT=Times New Roman]\*[/FONT]  
[/FONT][FONT=Tahoma][SIZE=1]  
[/SIZE][/FONT]  
[FONT=Tahoma][SIZE=1][/SIZE][/FONT]  
[FONT=Tahoma][SIZE=1]i then need a METHOD which produces the Fibonacci series when called. [/SIZE][/FONT]  
[FONT=Tahoma][SIZE=1][/SIZE][/FONT]  
[FONT=Tahoma][SIZE=1]The series is formed by adding two numbers in the series to generate the third. Note the first two are 0 and 1, so to make the make number we add 0 + 1 to give 1. The fourth number is obtained by adding the second and third numbers, 1 + 1 gives 2. So the series looks like:[/SIZE][/FONT]  
[FONT=Tahoma][SIZE=1][/SIZE][/FONT]  
[FONT=Tahoma][SIZE=1][/SIZE][/FONT]  
[FONT=Tahoma][SIZE=1]

> 0 1 1 2 3 5 8 13 21………  
> [/SIZE][/FONT]  
> [FONT=Tahoma][SIZE=1][/SIZE][/FONT]  
> [FONT=Tahoma][SIZE=1]All help is really appreciated and i may be able to reward any one for their help. Thanks[/SIZE][/FONT]
