The Solution4:07 with Jay McGavren
Now that you've coded your solution to the practice problem, I'll show you how I did it.
Here's my code:
a = 12 b = 7 c = 5 d = 10 puts (a + b + c + d) / 4.0
Try writing programs that calculate the perimeter or area of a rectangle or triangle.
You need to sign up for Treehouse in order to download course files.Sign up