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 of the following statements shows the halving and doubling strategy to find 28 x 50
4. Which structures are used by the cell for storing and maintaining biological information that will be passed to daughter cells when the cell divides? a. nucl
Taxonomy seeks to _____. identify all living things identify all nonliving things organize all living things in a logical manner organize all nonliving things i
why did the air with ice with ice move down?
a teacher wants to give 3 markers to each of her 25 students. Markers come in packeges of 8 how many packages of markers will the teacher need
Explain how you do 140 divided by 7/8 plz
What are the 4 types of processes that cycle matter through the biosphere give examples?
how do i solve 7x-y=21
What route did christopher Columbus take
$4 is what percent of $50