def print_used_languages(printer, results):
    """
    Prints the sorted list of used languages along with each language's
    percentage use.

    :param printer:
        A ``ConsolePrinter`` object used for console interactions.
    :param results:
        A list of tuples containing a language name as the first value
        and percentage usage in the project as the second value.
    """
    printer.print('The following languages have been automatically detected:')
    for lang, percent in results:
        formatted_line = '{:>25}: {:>2}%'.format(lang, int(percent))
        printer.print(formatted_line, color='cyan')
    printer.print()
