import java.util.*;
public class hello {
public static void main(String[] args) {
Scanner r = new Scanner(System.in);
double a,c;
a = r.nextDouble();
int b;
b=(int)a;
c=a-(double)b;
System.out.println(a+“的整数部分为”+b+",小数部分为"+c);
}
}
import java.util.*;
public class hello {
public static void main(String[] args) {
Scanner r = new Scanner(System.in);
double a,c;
a = r.nextDouble();
int b;
b=(int)a;
c=a-(double)b;
System.out.println(a+“的整数部分为”+b+",小数部分为"+c);
}
}