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

An isosceles triangle has an angle that measures 40 degrees. Which other angles could be in that isosceles triangle? Choose all that apply • 70 • 40 • 100 • 20
Which government entities play a direct role in the US economy and compete with private businesses? (Select all that apply ) A) United States Postal Servic
Show the steps on how to follow 3x - 7 =1/2x +6
a steady force is used...
The phenomenon of marble cancer is due to (a) soot particles (c) fog (b) CFCs (d) acid rain
What is the answer ?
need helpwith these​
Name Pd_ Date _Team How does the type of muscle help each system do their function? Use at lease 4 specific body parts for each organ system.
A football kicker made 80% of his field goals during a season. The kicker made 20 field goals. How many field goals did he attempt? PLEASE SHOW WORK
How do you divide 3 1/4 and 3?