题解 | #求绝对值,平方根,对数,正弦值#
求绝对值,平方根,对数,正弦值
http://www.nowcoder.com/practice/f8dbe57b29d941c4a94b78fb14f62cda
import java.util.Scanner;
public class Main { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); double num = scanner.nextDouble();
//write your code here......
System.out.println(Math.abs(num));
System.out.println(Math.sqrt(num));
System.out.println(Math.log(num));
System.out.println(Math.sin(num));
}
}