public static int abs(int a) { return (a < 0) ? -a : a; }. 二、絕對值的特性及其運用。 1、正數的絕對值是其本身。 2、負數的絕對值是其相反數。
確定! 回上一頁