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

Cinco de Mayo is the celebration of _____________. Mexico's Independence Mexico's victory over the French The start of mariachi bands
a blood vessel with a thick layer of smooth muscle and elastic fibers is
Nearly every village in Mexico has a church and a market. The city's public square where the market is held is called a.... A. Quarto B. Plaza C. Casa D. Squatt
write as a percent 0.05423
What are psychiatric medications?
Alice's aunt is 1.72 meters tall Alice's mother is 175 centimeters tall
a student picks a raffle ticket from a box and then picks a second raffle ticket without replacing the first raffle ticket
The square of a positive number is six more than five times the number. Set up and solve an equation to find the number.
Which can be represented by the expression 17 – 2x?
polynomial 5x^5-9x^3+2x^11+6 whats the degree? whats the leading coefficient? whats the number of term? whats the constant term?