Question: Which statement will accurately declare a variable x and store int 9 , which is 3 to the power of 2 ? Group of answer

Which statement will accurately declare a variable x and store int 9, which is 3 to the power of 2?
Group of answer choices
A) double x = Math.pow(3,2);
B) int x =(int) Math.pow(3,2);
C) int x =(int) Math.pow(3.0,2.0);
D) Both B and C

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!