展开全部
import java.util.Scanner;
public class Test{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请行中输入double类型的数字慎带和:"宽盯);
double input = sc.nextDouble();
System.out.println((int)input);
}
}
public class Test{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请行中输入double类型的数字慎带和:"宽盯);
double input = sc.nextDouble();
System.out.println((int)input);
}
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询