/**
 * This function calculates the total salary based on the number of hours worked and the hourly rate.
 *
 * @param hoursWorked The number of hours worked by the accountant.
 * @param hourlyRate The hourly rate of the accountant.
 * @return The total salary of the accountant.
 */
fun calculateSalary(hoursWorked: Int, hourlyRate: Int): Int {

    var totalSalary = 0
    var hours = hoursWorked
    while (hours > 0) {
        totalSalary += hours * hourlyRate
        hours--
    }
    return totalSalary
}
/**
 * This function calculates the total salary based on the number of hours worked and the hourly rate.
 *
 * @param hoursWorked The number of hours worked by the accountant.
 * @param hourlyRate The hourly rate of the accountant.
 * @return The total salary of the accountant.
 */
fun calculateSalary(hoursWorked: Int, hourlyRate: Int): Int {
/**
 * This function calculates the total salary based on the number of hours worked and the hourly rate.
 *
 * @param hoursWorked The number of hours worked by the accountant.
 * @param hourlyRate The hourly rate of the accountant.
 * @return The total salary of the accountant.
 */
fun calculateSalary(hoursWorked: Int, hourlyRate: Int): Int {

    var totalSalary = 0
    var hours = hoursWorked
    while (hours > 0) {
        totalSalary += hours * hourlyRate
        hours--
    }
    return totalSalary
}