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 did New Amsterdam become New York?
Are bonds broken or formed, throughout each phase change present on a heating curve?
(f o g)(x)f(x) = 2x-1 g(x) = 3x +10I already know, just wanted to test people out ;)
True or false? silicate makes up over 90 percent of earths crust?
Write an equation in point-slope form of the line that passes through the two points given. Use the first point to write the equation. 1.) (4,7) and (5,1) 2.)
3. Find the difference. a. 82-(-14) b. -18- (-55) C. -17-44 d. 70- (-101)
James completely covered a square poster board using 68.2 in. of cardstock. Which measurement is closest to one side of the poster board in inches? Answer?
Lisah, Inc., manufactures golf clubs in three models. For the year, the Big Bart line has a net loss of $10,000 from sales $200,000, variable costs $180,000, an
What is the length of cd
What is an example of Social Policy? Question 3 options: Medicare and Social Security Treaties with foreign nations NATO and NAFTA The Federal Reserve Bank