import java.util.*;
public class app_3 {
public static void main(String[] args) {
double s1;
int s2;
Scanner reader=new Scanner(System.in);
System.out.print("请输入一个浮点数:");
s1=reader.nextDouble();
s2=(int)s1; //强制类型转换
System.out.print("取整:"+s2);
}
}