/**
 * The function generates a formatted schedule for an electrician based on the number of days and working hours.
 *
 * @param numDays The number of days in which the electrician will work.
 * @param workingHours The number of working hours per day.
 * @return Formatted schedule showing the working hours for each day.
 */
fun electricianSchedule(numDays: Int, workingHours: Int): String {

    var schedule = ""
    for (day in 1..numDays) {
        for (hour in 1..workingHours) {
            schedule += "Day $day - Hour $hour\n"
        }
    }
    return schedule
}

// Uncomment the following lines and complete the code to solve the exercise

// val schedule = electricianSchedule(5, 8)
// println(schedule)

// Expected output:
// Day 1 - Hour 1
// Day 1 - Hour 2
// Day 1 - Hour 3
// Day 1 - Hour 4
// Day 1 - Hour 5
// Day 1 - Hour 6
// Day 1 - Hour 7
// Day 1 - Hour 8
/**
 * The function generates a formatted schedule for an electrician based on the number of days and working hours.
 *
 * @param numDays The number of days in which the electrician will work.
 * @param workingHours The number of working hours per day.
 * @return Formatted schedule showing the working hours for each day.
 */
fun electricianSchedule(numDays: Int, workingHours: Int): String {
/**
 * The function generates a formatted schedule for an electrician based on the number of days and working hours.
 *
 * @param numDays The number of days in which the electrician will work.
 * @param workingHours The number of working hours per day.
 * @return Formatted schedule showing the working hours for each day.
 */
fun electricianSchedule(numDays: Int, workingHours: Int): String {

    var schedule = ""
    for (day in 1..numDays) {
        for (hour in 1..workingHours) {
            schedule += "Day $day - Hour $hour\n"
        }
    }
    return schedule
}

// Uncomment the following lines and complete the code to solve the exercise

// val schedule = electricianSchedule(5, 8)
// println(schedule)

// Expected output:
// Day 1 - Hour 1
// Day 1 - Hour 2
// Day 1 - Hour 3
// Day 1 - Hour 4
// Day 1 - Hour 5
// Day 1 - Hour 6
// Day 1 - Hour 7
// Day 1 - Hour 8