What will be the output of the following program segment?
int a[] = {1, 2, 3, 4, 5, 6, 7, 9, 13, 16};
x = Math.pow(a[4], a[2]);
y = Math.sqrt(a[6] + a[7]);
Single Choice
Views 71
Answer:
Values of x and y: x=125.0 y=4.0
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.