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

ich denke. deutsch ist interessant. (dass) a. Ich denke, dass deutsch ist interessant. b. ich denke, dass ist deutsch interessant. c. ich denke, dass ist inte
pls help me with this question.​
Calculate the number of moles of oxygen in a 12.5-l tank if the pressure is 25325 kpa and the temperature is 22°c
what major events happened in the war of 1812
Which of the following is not a mineral resource found in Central America? a. bauxite c. copper b. nickel d. gold
What is the centripetal force that holds planets in orbit?
Use the model below to calculate 9 ÷ 1 3 please help.9/33/913 1/227
What were the gaols of U.S foreign policy in the Cold War?​
How many moles do 10.0 mg of CO represent? 0.28 0.036 0.000357 0.0036
help , need it quick