رد: Cpcs 202 شروحات وحلول وواجبات الجافا
Write a program that reads three edges for a triangle and determines whether the input is valid.
The input is valid if the sum of any two edges is greater than the third edge.
For example,
if your input for the three edges is 1, 2, 1, the output should be:
Can edge 1, 2, and 1 form a triangle? False
if your input for the three edges is 2, 2, 1, the output should be:
Can edge 2, 2, and 1 form a triangle? True
ممكن طريقة حل هذا السؤال بلييييز
|