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

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  




 

رد مع اقتباس