---
# System prepended metadata

title: David Gripman SE371 Assignment 1 Dev Notes

---

# David Gripman SE371 Assignment 1 Dev Notes

- This assignment is to create a fibonacci program in java


- First step was to create the class and initialize a main() method

- I have worked with the Fibonacci sequence before in previous classes so I am familiar with the code and decided to create it using a while loop.

- Essentially I just initialize two integer variables at values of 0 and 1 as well as a counter, and then I created a while loop that iterated until it reached the value of N that was input. While this loop iterates it prints val1 to the output, adds val1 and val2 to create val3, and adds 1 to the counter. 

- Finally, I added a some driver code in order to input any given value of N and then call the firstFibonacci function