Fruitful Functions

 

The Fruitful Functions lab was very exciting and a little easy for me to complete. As we can see in the code below whenever the value of n is 1 it will return “Fermat was wrong”. Otherwise if the value of n is more than 1 it will return “No, that doesn’t work”.

fruitful.jevvfruitful.jevv2