How can i solve this problem ?
Show older comments
Consider a triangle with vertices at (0,0), (1,0), and (0,1). Write a program with an input (x,y) and the output S where S is the string 'outside' if the point (x,y) is outside of the triangle, 'border' if the point is exactly on the border of the triangle, and 'inside' if the point is on the inside of the triangle.
1 Comment
George Georgy
on 18 Mar 2018
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!