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 is 1/3 of 9 if u know please tell me thanks
What is 16/8 as a mixed number
how do you use distributive property to find the answer of 75 divided by 3
The least common multiple of two numbers is 60, and one of the numbers is 7 less than the other number . What are the numbers ? Justify your answer
write the ratio as a fraction in simplest form6ft to 4yd
rounding 672,831 to the tens place? hundreds place? thousand place? ten thousand place? and hundred thousands place?
What is 16/8 as a mixed number
rounding 672,831 to the tens place? hundreds place? thousand place? ten thousand place? and hundred thousands place?
what is the domain and range for y=lxl
What is 16/8 as a mixed number