Write an algorithm to solve this brain teaser:

You have a square that is broken into four triangles, the area of three of those triangles is given. You must determine the area of the center triangle. Your function will take in 3 arguments A, B, and C. Below is an image of this problem, in this example A = 4, B = 3, and C = 2.

Solution Stats

87 Solutions

31 Solvers

Last Solution submitted on Dec 29, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers31

Suggested Problems

More from this Author2

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!