Last active
March 9, 2017 06:10
-
-
Save rwngallego/1a516188a3542dd5ec46c855c89ef0e5 to your computer and use it in GitHub Desktop.
Testing the all_together.erl file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%%%% Testing %%%%%% | |
% Copy and paste the following content into the erl console | |
Circle = {circle, 45}. | |
Rectangle = {rectangle, 5, 7}. | |
RightTriangle = {right_triangle, 3, 4, 5}. | |
all_together:perimeter(Circle). | |
all_together:perimeter(Rectangle). | |
all_together:perimeter(RightTriangle). | |
all_together:area(Circle). | |
all_together:area(Rectangle). | |
all_together:area(RightTriangle). | |
all_together:enclose(Circle). | |
all_together:enclose(Rectangle). | |
all_together:enclose(RightTriangle). | |
all_together:bits(7). | |
all_together:bits(8). | |
all_together:bits_tail(7). | |
all_together:bits_tail(8). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment