Program Logic:
- previousNumber is initialized to 0 and nextNumber is initialized to 1
- For Loop iterates through
maxNumber
- displays the previousNumber
- calculates sum of previousNumber and nextNumber
- updates new values of previousNumber and nextNumber
Recent Comments