28-12-2013, 03:18 PM
السلام عليكم
يمكن اختصار الكود السابق
يمكن اختصار الكود السابق
كود :
function InputValidation3(s: string; i: integer): Boolean;
begin
Result := ((s = 'a') and (i > 2)) or ((s = 'b') and (i > 7)) or ((s = 'c') and (i > 20));
end;
