You can do this:
float x = 10.5;
float y = 13.4;
float z = 12.7;
float a = 52.0;
float sum = (x + y + z + a);
System.out.println("Your sum is:" + sum);
0
solved Summing more than two doubles
You can do this:
float x = 10.5;
float y = 13.4;
float z = 12.7;
float a = 52.0;
float sum = (x + y + z + a);
System.out.println("Your sum is:" + sum);
0
solved Summing more than two doubles