We are about to switch to a new forum software. Until then we have removed the registration on this forum.
So I need to write a code for a user to enter a number equal or greater than 3. Then the output should be the fibonacci sequence up until that number entered. For example, if a user enters 9, then the output should be 1,1,2,3,5,8. My problem is that it's showing a few extra terms and anything I try messes it up more. please help I would very much appreciate it. I'm very new to processing. Here's the code I have so far: