CUNY John Jay College Criminal Justice Fibonacci Sequence Programming Worksheet

Program

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

1

Write a program that prints the first 1

2

Fibonacci numbers

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Sample output:

112

3

5

8

13

21

34

55

89

144

Program 2

Write GCD both recursively and iteratively

Sample code:

https://www.freecodecamp.org/news/euclidian-gcd-algorithm-greatest-common-divisor/

Your output will simply be the GCD for the pair of numbers. Call your function with a few pairs and note in comments in your code the expected answer. The code must be (reasonably) valid Shank. You cannot use Java, C, JavaScript or some other language. Program 1
Write a program that prints the first 12 Fibonacci numbers
Sample output:
UT WH
13
21
34
55
89
144
Program 2
Write GCD both recursively and iteratively
Sample code:
https://www.freecodecamp.org/news/euclidian-gcd-algorithm-greatest-common-
divisor/
Your output will simply be the GCD for the pair of numbers. Call your function with a few pairs and note
in comments in your code the expected answer.
the code must be (reasonably) valid Shank. You cannot use Java, C, JavaScript or some other language.

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER