Fibonacci and Pascal - Newbie needs help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Statsstudent2006
    New Member
    • Oct 2006
    • 1

    Fibonacci and Pascal - Newbie needs help!

    Hello!

    I am a newbie, and have received my first VBA assignment. I have to write a subroutine that generates the Fibonacci sequence of numbers (the first n numbers, where n is an integer number that the user inputs). For example, the first seven numbers will be 0,1,1,2,3,5,8).

    I also have to write a subroutine that generates Pascal's triangle (the first n rows, where n is an integer number that the user inputs). For example, the first three rows will be: 1, 1 1, 1 2 1, ...

    If anyone could please assist, or point me in the correct direction? I have been looking, and all I find are functions, not subroutines!

    My assignment is due on Wednesday..

    Thanks
    Statsstudent200 6
Working...