Computer Science, asked by aashi486, 1 year ago

Please answer this one

Attachments:

Answers

Answered by ArshiaBanerjee
0

Explanation:

class number

{

public static void main (int n)

{

if (n>=50)

int s= n*n

System.out.println("square is "+s) ;

else

int s=n*n*n

System.out.println(" cube is "+s) ;

}

}

Similar questions