We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Modified Kaprekar Numbers
Modified Kaprekar Numbers
Sort by
recency
|
1015 Discussions
|
Please Login in order to post a comment
here is the simplified code of python
def kaprekarNumbers(p, q): res = []
This is my solution in C++:
C# Solution
public static void kaprekarNumbers(int p, int q) { string numbers = ""; for(double i = p; i <= q; i++) if(IsNumberKaprekar(i)) numbers += i + " ";
Java