Menu

[solved] – Question 74919

Write a function, smallest, which given positive integer n and a positive integer key returns the smallest digit in n greater than key. For example if n is 8150 and key is 3, the function returns 5. Your function should also work if there is no digit in n smaller than key.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *