Can we make a triangle? - MATLAB Cody - MATLAB Central

Problem 43294. Can we make a triangle?

Difficulty:Rate

Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle sum of two sides should be greater than the third one. So with the lengths of 2,3 and 6 we can not make a triangle

Solution Stats

47.7% Correct | 52.3% Incorrect
Last Solution submitted on Mar 12, 2025

Problem Comments

Solution Comments

Show comments

Group

Basics - Binary Logic Image
Basics - Binary Logic
  • 10 Problems
  • 958 Finishers

Problem Recent Solvers2073

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page