/**
 * Given the current and resistance, calculate the power.
 *
 * Formula: P = I^2 * R
 *
 * @param current The current flowing through the circuit.
 * @param resistance The resistance of the circuit.
 * @return The power dissipated in the circuit.
 */
fun checkPower(current: Double, resistance: Double): Double {

    val power = current * current * resistance
    return power
}
/**
 * Given the current and resistance, calculate the power.
 *
 * Formula: P = I^2 * R
 *
 * @param current The current flowing through the circuit.
 * @param resistance The resistance of the circuit.
 * @return The power dissipated in the circuit.
 */
fun checkPower(current: Double, resistance: Double): Double {
/**
 * Given the current and resistance, calculate the power.
 *
 * Formula: P = I^2 * R
 *
 * @param current The current flowing through the circuit.
 * @param resistance The resistance of the circuit.
 * @return The power dissipated in the circuit.
 */
fun checkPower(current: Double, resistance: Double): Double {

    val power = current * current * resistance
    return power
}