Computer Science, asked by ramani1005, 5 months ago

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 plshelp93
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