write a program to accept an int type value as a parameter and print the square of it if it is more than 120 otherwise print its cube
aditiChauhan143:
hiii
Answers
Answered by
0
the only way we could get some
Answered by
8
Answer:
JAVA :-
Explanation:
class Brainly
{
static void main(int n)
{
if(n>120)
System.out.println(“Square=”+(n*n));
else
System.out.println(“Cube=”+(n*n*n));
}
}
Similar questions