Quiz 03

Here is my blog post for the Quiz 3

  1. Write a function called distance (x1,y1,x2,y2) which receives four numbers which represent two points in the cartesian plane. The function should return the distance between the two points (x1,y1) and (x2,y2). Remember that the square of the hypotenuse of a right angle triangle is equal to the sum of the squares of the two other sides. Here is the link to my GitHub.

    Captura de pantalla 2016-05-04 a las 10.05.23 p.m..png

 

  1. Write a function called fibonacci which receives a single parameter“n”(anon-negative integer) and returns the nth number in the fibonacci series which is:
    0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89… Here is the link to my GitHub

Captura de pantalla 2016-05-04 a las 10.06.04 p.m..png

CC BY-SA 4.0 Quiz 03 by miguelsantu is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.