public class test{
public static void main(String[] args){
int day=23;
int avg=day/7;
System.out.println(avg);
float a=(float)day/7;
System.out.println(a);
double b=(double)day/5;
System.out.println(b);
}
}
输出内容是:
3
3.0
3.0
这是为什么?
苏州河1991
strawberryxx
慢半拍_0003
XhstormR
Night_Fever
yanrun
相关分类