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
the answer should be d if my math is correct
Answer:
Alternate interior angles theorem
Step-by-step explanation:
Alternate interior angles theorem
Answer:d
Step-by-step explanation:
Got it right
The cost of zero bags of candy .
You are not going to pay for no bags of candy lol!!
There are 4 faces on a triangular pyramid
so total surface area = 4 x area of each face = 4 x 66
= 264 sq mm