عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 24-11-2011, 06:30 PM   #135

ابو تركي 13

جامعي

 
تاريخ التسجيل: Nov 2011
نوع الدراسة: إنتظام
المستوى: الثالث
الجنس: ذكر
المشاركات: 7
افتراضي رد: 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

 

ابو تركي 13 غير متواجد حالياً   رد مع اقتباس