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

13/20-3/10 estimate: closer to 1 or 0?
You sell pies at a farmers' market for $7.50 each. A group of 5 kids wants to pitch in equal1y to share one of your pies. How much will each of them need to pa
What is the value of 6P6?  A.1  B.36  C.720  D.46,656
In Latin America, what did land reform accomplish?
It is likely that Earth could lose half of its species in the next ____________ years. a. 50 b. 100 c. 500 d. 1000
Which shows 5.45 written as a mixed number?
one way that animals adapt to seasonal change
Which sign is the less sign and which one is the greater sign (can someone please tell me I really need help! and I never understand the signs!) is this greater
how much sperm does it take to make a baby?
why did the framers give the power to congress rather than to the states?