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

Which statement describes an element of Steve Harmon’s screenplay in monster A. The setting is describes through narration B. Written dialogue ads detail C. The
99 POINTS HELP!!! ASAP PLEASE! 1. Which of the following is an ABIOTIC factor? A. Seaweed B. Tree bark C. Rocks D. Turtle 2. What is an input of photosynthesis
if anyone is in algebra 2 on ignitia schools, i need mega help & answers.
Hurricanes can have wind speeds in excess of 400 mph. True False
he Civilian Conservation Corps was a public works relief program designed to preserve the nation's natural resources while providing unemployed men with jobs.
what colors of light does iron help heme absorb?
Check all of the possible first steps in factoring a polynomial with four terms. 1.factor out a GCF 2.factor the difference of cubes 3.factor a sum of cubes 4.f
Please help this is due today!
complete subject and complete predicate
A chain fits tightly around two gears as shown. What is the radius of the smaller gear? Round your answer to the nearest tenth. 4.8 in. 23.2 in. 14.0 in. 9.2 i