/**
 * This exercise is designed for social workers to understand the concept of nested loops and the use of the range function.
 *
 * Given two numbers, num1 and num2, the function should print out all possible combinations of numbers between the ranges of num1 and num2, inclusive. The numbers should be printed in a nested structure.
 *
 * @param num1 The starting number of the range.
 * @param num2 The ending number of the range.
 */
fun nestedRange(num1: Int, num2: Int) {

    for (i in num1..num2) {
        for (j in num1..num2) {
            println("$i $j")
        }
    }
}
/**
 * This exercise is designed for social workers to understand the concept of nested loops and the use of the range function.
 *
 * Given two numbers, num1 and num2, the function should print out all possible combinations of numbers between the ranges of num1 and num2, inclusive. The numbers should be printed in a nested structure.
 *
 * @param num1 The starting number of the range.
 * @param num2 The ending number of the range.
 */
fun nestedRange(num1: Int, num2: Int) {
/**
 * This exercise is designed for social workers to understand the concept of nested loops and the use of the range function.
 *
 * Given two numbers, num1 and num2, the function should print out all possible combinations of numbers between the ranges of num1 and num2, inclusive. The numbers should be printed in a nested structure.
 *
 * @param num1 The starting number of the range.
 * @param num2 The ending number of the range.
 */
fun nestedRange(num1: Int, num2: Int) {

    for (i in num1..num2) {
        for (j in num1..num2) {
            println("$i $j")
        }
    }
}