hulk815 hulk815
  • 03-06-2022
  • Computers and Technology
contestada

Write a java program as follows Write a method called powOfTwo that takes an integer as parameter, computes, and outputs it’s square

Respuesta :

Аноним Аноним
  • 03-06-2022

Answer:

public static int powOfTwo(int input) {

 return input*input;

}

You will have to call this method in main
for printing it, write

System.out.println(powOfTwo(your number));

in public static void main(str[]args) {

}

Ver imagen Аноним
Answer Link

Otras preguntas

What were the founding principles of the New England colonies?
PLEASEE HELP ME.... ​
I hate math math math math math math math math math math math math math math math. Can anybody Teacher and Students please help me?I will gave brainliest and he
hiw big is a buffalo​
Evaluate. The problem is down below. Will award BRAINLIEST!
10101+11010+11111+10111​
On what island would you find Levanzano and Addaura caves?
What are the core beliefs of Christianity? Choose all answers that are correct. Jesus arrived on Earth to free Israel from Roman occupation. Jesus is the Son o
An electric motor is rated at 900 W. How much force does it apply when moving something 1000 m in 8.6 s? Please help thank you!
If f(x) = 3(-2x + 7) , find f(13) f(13) =