public class HelloWord {
public static void main(String[] args){
System.out.println("hello word!");
double pi=3.14;
int area = 0;
for(int i = 1;i<10;i++){
area = pi*i*i;
System.out.println(area);
}
}
}
为什么显示double转换为int会有损失,该怎么修改