// 使用java Math的类方法 // 1、Math.round(), 四舍五入取整 // 2、Math.ceil(), 向上取整 // 3、Math.floor(), 向下取整 import java.util.*; public class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); double d = sc.nextDouble(); if(d > 0){ ...