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