1.

What is the output of this program?

public class dynamic_initialize
{
public static void main(String args[])
{
double p, q;
p = 4.5;
q = 10.0;
double r = Math.sqrt(p * p + q * q);
System.out.println(r);
}
}

A. 11.965
B. 10.965
C. 10.965856099730654
D. 12.965
E. 10.865856099730654
Answer» D. 12.965


Discussion

No Comment Found