/**
 * This exercise aims to calculate the voltage drop in a circuit for a given voltage source and resistance.
 * The function takes the voltage source value and resistance value as arguments and returns the voltage drop.
 *
 * Example:
 * voltage_source = 12  // Volts
 * resistance = 2  // Ohms
 * calculate_voltage_drop(voltage_source, resistance)
 * Expected Output: 6
 */
fun calculateVoltageDrop(voltageSource: Int, resistance: Int): Int {

    val voltageDrop = voltageSource * resistance  // Calculate the voltage drop using Ohm's law
    return voltageDrop  // Return the calculated voltage drop
}
/**
 * This exercise aims to calculate the voltage drop in a circuit for a given voltage source and resistance.
 * The function takes the voltage source value and resistance value as arguments and returns the voltage drop.
 *
 * Example:
 * voltage_source = 12  // Volts
 * resistance = 2  // Ohms
 * calculate_voltage_drop(voltage_source, resistance)
 * Expected Output: 6
 */
 
fun calculateVoltageDrop(voltageSource: Int, resistance: Int): Int {
/**
 * This exercise aims to calculate the voltage drop in a circuit for a given voltage source and resistance.
 * The function takes the voltage source value and resistance value as arguments and returns the voltage drop.
 *
 * Example:
 * voltage_source = 12  // Volts
 * resistance = 2  // Ohms
 * calculate_voltage_drop(voltage_source, resistance)
 * Expected Output: 6
 */
 
fun calculateVoltageDrop(voltageSource: Int, resistance: Int): Int {

    val voltageDrop = voltageSource * resistance  // Calculate the voltage drop using Ohm's law
    return voltageDrop  // Return the calculated voltage drop
}