/**
 * You are an artist and want to draw different shapes using a computer program.
 * One of the shapes you want to draw is a triangle. To do this, you need to determine
 * whether given the lengths of three sides, it is possible to form a triangle.
 *
 * In this exercise, you need to write a function 'isTriangle' that takes in three
 * arguments (a, b, c) representing the lengths of the sides of a triangle. The function
 * should return true if it is possible to form a triangle with those side lengths, and
 * false otherwise.
 *
 * Examples:
 * isTriangle(1, 2, 3) => true
 * isTriangle(3, 4, 8) => false
 *
 * Complete the 'isTriangle' function below to solve the problem.
 */
fun isTriangle(a: Int, b: Int, c: Int): Boolean {

    // Check if the sum of any two sides is greater than the third side
    if (a > 0 && b > 0 && c > 0) {
        return (a + b > c) && (a + c > b) && (b + c > a)
    }
    return false
}
/**
 * You are an artist and want to draw different shapes using a computer program.
 * One of the shapes you want to draw is a triangle. To do this, you need to determine
 * whether given the lengths of three sides, it is possible to form a triangle.
 *
 * In this exercise, you need to write a function 'isTriangle' that takes in three
 * arguments (a, b, c) representing the lengths of the sides of a triangle. The function
 * should return true if it is possible to form a triangle with those side lengths, and
 * false otherwise.
 *
 * Examples:
 * isTriangle(1, 2, 3) => true
 * isTriangle(3, 4, 8) => false
 *
 * Complete the 'isTriangle' function below to solve the problem.
 */
fun isTriangle(a: Int, b: Int, c: Int): Boolean {
/**
 * You are an artist and want to draw different shapes using a computer program.
 * One of the shapes you want to draw is a triangle. To do this, you need to determine
 * whether given the lengths of three sides, it is possible to form a triangle.
 *
 * In this exercise, you need to write a function 'isTriangle' that takes in three
 * arguments (a, b, c) representing the lengths of the sides of a triangle. The function
 * should return true if it is possible to form a triangle with those side lengths, and
 * false otherwise.
 *
 * Examples:
 * isTriangle(1, 2, 3) => true
 * isTriangle(3, 4, 8) => false
 *
 * Complete the 'isTriangle' function below to solve the problem.
 */
fun isTriangle(a: Int, b: Int, c: Int): Boolean {

    // Check if the sum of any two sides is greater than the third side
    if (a > 0 && b > 0 && c > 0) {
        return (a + b > c) && (a + c > b) && (b + c > a)
    }
    return false
}