//小淇在敲代码
package p2;
public class 数据类型的自动转换 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a=155;
float b=21.0f;
System.out.println("a="+a+",b="+b);
System.out.println("a/b="+(a/b));
}
}
//小淇在敲代码
package p2;
public class 数据类型的自动转换 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a=155;
float b=21.0f;
System.out.println("a="+a+",b="+b);
System.out.println("a/b="+(a/b));
}
}