find the error
4. class Sample
public static void main(String args[])
(
int n.p:
float k.r:
n=25;p=12
if(n=25)
(
k=pow(p.2)
System.out.println("The value of"+p+" = "+k);
)
else
(
r=Math.square root(n);
System.out.println("The value of"+n+" = "+r);
)
Answers
Answered by
0
Answer:
E class Sample
public static void main(String args[])
(
int n.p:
float k.r:
n=25;p=12
if(n=25)
(
k=pow(p.2)
System.out.println("The value of"+p+" = "+k);
)
else
(
r=Math.square root(n);
System.out.println("The value of"+n+" = "+r);
Explanation:
class Sample
public static void main(String args[])
(
int n.p:
float k.r:
n=25;p=12
if(n=25)
(
k=pow(p.2)
System.out.println("The value of"+p+" = "+k);
)
else
(
r=Math.square root(n);
System.out.println("The value of"+n+" = "+r);
Similar questions