/**
 * You are a journalist tasked with writing an article about the relationship between journalists and different countries.
 * Your task is to iterate through the set of journalists and check if they have visited each country in the set of countries.
 * You should output a sentence for each journalist and country pair, indicating if the journalist has visited the country or not.
 *
 * @param journalists A set containing the names of journalists.
 * @param countries A set containing the names of countries.
 */
fun writeArticle(journalists: Set<String>, countries: Set<String>) {

    for (journalist in journalists) {
        for (country in countries) {
            if (journalist == "John" && country == "UK") {
                // Write your code here to complete the exercise
                // Uncomment and fill in the appropriate code below
                // if journalist has visited the country, print 'John has visited UK'
                // else print 'John has not visited UK'
                // if journalist has visited the country, print "$journalist has visited $country"
                // else print "$journalist has not visited $country"
                // Pass
            }
            // Add more nested if statements here to handle other journalist and country combinations
        }
    }
}
/**
 * You are a journalist tasked with writing an article about the relationship between journalists and different countries.
 * Your task is to iterate through the set of journalists and check if they have visited each country in the set of countries.
 * You should output a sentence for each journalist and country pair, indicating if the journalist has visited the country or not.
 *
 * @param journalists A set containing the names of journalists.
 * @param countries A set containing the names of countries.
 */
fun writeArticle(journalists: Set<String>, countries: Set<String>) {
/**
 * You are a journalist tasked with writing an article about the relationship between journalists and different countries.
 * Your task is to iterate through the set of journalists and check if they have visited each country in the set of countries.
 * You should output a sentence for each journalist and country pair, indicating if the journalist has visited the country or not.
 *
 * @param journalists A set containing the names of journalists.
 * @param countries A set containing the names of countries.
 */
fun writeArticle(journalists: Set<String>, countries: Set<String>) {

    for (journalist in journalists) {
        for (country in countries) {
            if (journalist == "John" && country == "UK") {
                // Write your code here to complete the exercise
                // Uncomment and fill in the appropriate code below
                // if journalist has visited the country, print 'John has visited UK'
                // else print 'John has not visited UK'
                // if journalist has visited the country, print "$journalist has visited $country"
                // else print "$journalist has not visited $country"
                // Pass
            }
            // Add more nested if statements here to handle other journalist and country combinations
        }
    }
}