469,898 Members | 1,674 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

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
Statsstudent2006
Oct 2 '06 #1
0 1305

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

28 posts views Thread by dleecurt | last post: by
reply views Thread by Alex Vinokur | last post: by
17 posts views Thread by David Scemama | last post: by
14 posts views Thread by felixnielsen | last post: by
12 posts views Thread by Santosh Krisnan | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.