Java Square square(float number, int power)

Here you can find the source of square(float number, int power)

Description

square

License

Open Source License

Declaration

@SuppressWarnings("unused")
    private static float square(float number, int power) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    @SuppressWarnings("unused")
    private static float square(float number, int power) {

        float newNumber = 1;

        for (int i = 0; i < power; i++) {

            newNumber = newNumber * number;

        }/*  www  .j a  v a2s  .c  o  m*/

        return newNumber;

    }
}

Related

  1. square(double a)
  2. square(double[] in, double[] out)
  3. square(double[][] m)
  4. square(final double num)
  5. square(int n)
  6. square(int value)