عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 25-11-2011, 12:20 PM   #10

ABADI10

يًـآرب εïз تًـوْفيقكـ

الصورة الرمزية ABADI10

 
تاريخ التسجيل: Sep 2010
التخصص: (: Computer Science
نوع الدراسة: إنتظام
المستوى: الرابع
الجنس: ذكر
المشاركات: 311
افتراضي رد: 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


ممكن طريقة حل هذا السؤال بلييييز

 

توقيع ABADI10  

 




 

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