Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 506 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 506 Bytes

Homework 1

The series of Fibonacci numbers is defined as

alt text

where f(0) = 0, f(1) = 1. Write a program which reads an integer N from the console, calculates f(N) and prints the result to the console. For N=10 you should obtain the result 55.

Notes

  • This homework is due until 4.11.2015
  • The file you have to edit is fibonacci.cxx, please leave all other files unchanged.
  • To compile your program use: g++ fibonacci.cxx -o fibonacci