/**
 * This function calculates the resistance of a circuit given the voltage and current.
 *
 * @param voltage The voltage in volts.
 * @param current The current in amperes.
 * @return The resistance in ohms.
 */
fun calculateResistance(voltage: Double, current: Double): Double {

    // Complete the following line of code to calculate the resistance:
    val resistance = voltage / current

    return resistance
}
/**
 * This function calculates the resistance of a circuit given the voltage and current.
 *
 * @param voltage The voltage in volts.
 * @param current The current in amperes.
 * @return The resistance in ohms.
 */
fun calculateResistance(voltage: Double, current: Double): Double {
/**
 * This function calculates the resistance of a circuit given the voltage and current.
 *
 * @param voltage The voltage in volts.
 * @param current The current in amperes.
 * @return The resistance in ohms.
 */
fun calculateResistance(voltage: Double, current: Double): Double {

    // Complete the following line of code to calculate the resistance:
    val resistance = voltage / current

    return resistance
}