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

Critically discuss the impact of negative spectators behavior during sporting events
Omar took out a $20,000 loan for 146 days and was charged simple interest. The total interest he paid on the loan was $488.
Examine a partial order relation where is the relation on the set of people such that if and are people and is older than .
Find mUW please help!!!
Factorise (3x+1)2 - (3x+1) (x-7)
how can stress caused by peer pressure negatively impact someone life quality
how many 1 cm cubes are there in 100 cm cubes volume?​
If two sides of a triangle measure 2 and 4, what might the third side be?
A man sold two watches at Rs 240 each; on one he gained 7% and on the other he lost 7%. The gain or loss percent in the whole transaction is a) 7% gain b) 7% lo
it states us to compare two columnsplease help me​