well it sounds like a homework problem to me so i won't write the code for you but to help you out. I would create a variable for the first number and second and replace them as the loop goes forward. This is uming you know what a fibonacci sequence is...if not look it up on wikipedia...good luck
No comments:
Post a Comment