int
value
and a double
value?average
suitable for holding
the average of three numbers. Hint: think about the type the variable should be.
.java
?.class
?
StdOut.println("Val:" + 1 + 2 + (3 + 4));
Explain what is going on.
double x;
x = 9.0;
StdOut.println(Math.sqrt(x));
StdOut.println(Math.pow(x,2));
Math.sqrt(x)
function do?Math.pow(x,y)
function do?Math.rint(x)
do?
Experiment with this function in Java to figure out what it does.
int x = 7; int y = 9; int z = x + y / 4 * (x - 2); StdOut.println(z);
hello count 5times int pepper2 while iden_tifier APPLES &*( do-it if else
double pi,a,z,volume; pi = 3.14159; z = a = volume =