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

what was the triangular trade? which countries did it involve? what goods were exchanged?
Eukaryotic cells can have up to how many times more dna than prokaryotic cells?
The lining of the uterus that is discharged during the menstrual flow phase is the
If BC=CD=DE, what is th area of triangle ACD.
What is the quotient 4-x/x^2+5x-6 divided by x^2-11x+28/x^2+7x+6 in simplified form?
Which compound is a saturated hydrocarbon? propanal propane propene propyne?
what are the biggest obstacles facing walmart and other foreign retailers in India?
What impact did the atlantic slave trade have on the nations of the west african interior?
Which of the following lines from John Muir the calypso borealis
How did Mussolini and hitler fight unemployment in their countries?