Consider the following code segment. int x = 5; int y = 6; /* missing code */ z = (x + y) / 2; Which of the following can be use
d to replace /* missing code */ so that the code segment will compile? I.int z = 0; II.int z; III.boolean z = false;
1 answer:
Answer:
II. int z;
Step-by-step explanation:
int z;
is the best option, because on the next line you will define the variable as
z = (x + y) / 2;
you can also use int z=0; but it is not necessary according to the code segment given.
You might be interested in
Nine less than a number
is
n - 9
Answer:
Its C
Thanks
Step-by-step explanation:
hope i helped
Forgive if I am wrong, but I think the answer is 360 feet cubed
Answer:
$14.4
Step-by-step explanation:
20%= .2
$18 x .2 = $3.60
$18 - $3.6 = $14.4
Answer:
126 centimeters squared
Step-by-step explanation: