/**
 * Given a list of numbers, the function checks the percentage of numbers not divisible by 10.
 * It returns the percentage as a decimal.
 *
 * @param data: A list of positive integer numbers.
 * @return A decimal representing the percentage of numbers not divisible by 10.
 *
 * Example:
 * checkPercentages(listOf(10, 20, 35, 45, 55, 80)) // 0.5
 */
fun checkPercentages(dataList: List<Int>): Double {

    var count = 0
    val totalNumbers = dataList.size

    for (number in dataList) {
        if (number % 10 !in listOf(0, 10)) {
            count++
        }
    }

    return count.toDouble() / totalNumbers
}
/**
 * Given a list of numbers, the function checks the percentage of numbers not divisible by 10.
 * It returns the percentage as a decimal.
 *
 * @param data: A list of positive integer numbers.
 * @return A decimal representing the percentage of numbers not divisible by 10.
 *
 * Example:
 * checkPercentages(listOf(10, 20, 35, 45, 55, 80)) // 0.5
 */
fun checkPercentages(dataList: List<Int>): Double {
/**
 * Given a list of numbers, the function checks the percentage of numbers not divisible by 10.
 * It returns the percentage as a decimal.
 *
 * @param data: A list of positive integer numbers.
 * @return A decimal representing the percentage of numbers not divisible by 10.
 *
 * Example:
 * checkPercentages(listOf(10, 20, 35, 45, 55, 80)) // 0.5
 */
fun checkPercentages(dataList: List<Int>): Double {

    var count = 0
    val totalNumbers = dataList.size

    for (number in dataList) {
        if (number % 10 !in listOf(0, 10)) {
            count++
        }
    }

    return count.toDouble() / totalNumbers
}