Please answer this one
Attachments:
Answers
Answered by
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