/**
 * This exercise requires you to find the smallest number among four given numbers, using the Kotlin syntax of the ternary operator.
 *
 * @param a The first number.
 * @param b The second number.
 * @param c The third number.
 * @param d The fourth number.
 * @return The smallest number among the four given numbers.
 *
 * Instructions:
 * - Use the ternary operator to compare the numbers and find the smallest one.
 * - You can only use the ternary operator and the less than comparison operator (<) in your solution.
 * - Do not use any other conditional statements or loops, keep it simple!
 * - Good luck!
 */
fun findSmallestNumber(a: Int, b: Int, c: Int, d: Int): Int {

    val smallest = if (a < b && a < c && a < d) a else if (b < c && b < d) b else if (c < d) c else d
    return smallest
}
/**
 * This exercise requires you to find the smallest number among four given numbers, using the Kotlin syntax of the ternary operator.
 *
 * @param a The first number.
 * @param b The second number.
 * @param c The third number.
 * @param d The fourth number.
 * @return The smallest number among the four given numbers.
 *
 * Instructions:
 * - Use the ternary operator to compare the numbers and find the smallest one.
 * - You can only use the ternary operator and the less than comparison operator (<) in your solution.
 * - Do not use any other conditional statements or loops, keep it simple!
 * - Good luck!
 */
fun findSmallestNumber(a: Int, b: Int, c: Int, d: Int): Int {
/**
 * This exercise requires you to find the smallest number among four given numbers, using the Kotlin syntax of the ternary operator.
 *
 * @param a The first number.
 * @param b The second number.
 * @param c The third number.
 * @param d The fourth number.
 * @return The smallest number among the four given numbers.
 *
 * Instructions:
 * - Use the ternary operator to compare the numbers and find the smallest one.
 * - You can only use the ternary operator and the less than comparison operator (<) in your solution.
 * - Do not use any other conditional statements or loops, keep it simple!
 * - Good luck!
 */
fun findSmallestNumber(a: Int, b: Int, c: Int, d: Int): Int {

    val smallest = if (a < b && a < c && a < d) a else if (b < c && b < d) b else if (c < d) c else d
    return smallest
}