Please answer this one
Attachments:
![](https://hi-static.z-dn.net/files/dd0/510d5a60111d904ec2caced2370816cb.png)
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