Computer Science, asked by aditiChauhan143, 1 year ago

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
aditiChauhan143: yeah frnd

Answers

Answered by pappy64
0
the only way we could get some
Answered by CopyThat
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