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

88 Solutions

32 Solvers

Last Solution submitted on May 29, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers32

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!