package ch01;
public class Demo02 {
public static void main(String[] args) {
int a=10;
double b=23.65,c=0;
float d=45.78f;
c=a+b+d;
System.out.println("c="+c);
}
}
运行结果:
package ch01;
public class Demo02 {
public static void main(String[] args) {
int a=10;
double b=23.65,c=0;
float d=45.78f;
c=a+b+d;
System.out.println("c="+c);
}
}
运行结果: