题解 | #取近似值#
取近似值
http://www.nowcoder.com/practice/3ab09737afb645cc82c35d56a5ce802a
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
float f = sc.nextFloat();
int a = Math.round(f);
System.out.println(a);
}
}
OPPO公司福利 1176人发布
查看11道真题和解析