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

how do you write 4540 million in standard form?
What is the amplitude of y=1/2 sin2x
in the number 13,407.036 there are two 3's. Explain how the values of the 3's are related.
in the number 13,407.036 there are two 3's. Explain how the values of the 3's are related.
What were the major causes of WWII? Please include at least 4 answers.
what is a high structure part of a church which has 5 letters
what is a high structure part of a church which has 5 letters
what is a high structure part of a church which has 5 letters
Why is sodium sulphate hemihydrate called as "Plaster of Paris"?
How do you?...Multiply out and simplify 10(2x-1)-20x?