daily programming challenge #2

in #programming9 years ago (edited)

Level: easy!

Programm a programm, which gets two numbers and calculates the Fibonacci-loop from it.

Example:

Input

2, 5

Output

2 + 5 = 7

5 + 7 = ???

Extensions:

E1:(If you don't have unbound variables in your language): Look up a way to find out, whether your two Integers are too
big.

E2: Let the user choose, which iteration of this Cycle he wants to get displayed.

Ex (e2):

Input:

2, 5, 20

Output:

Calculates until the 20eth Iteration and prints the result of this specific (20) Iteration!

E3: Write the result to a file.

Coin Marketplace

STEEM 0.13
TRX 0.33
JST 0.034
BTC 110836.75
ETH 4311.34
USDT 1.00
SBD 0.82