99,998,765
The largest digits number with only 2 digits alike is 99
If the digits are only used once, each, the largest possible number would be 97,531
This number is 9 999.Or maybe 9999 .
I suspect that it is 6^940 which is 731 digits long. The largest through reordering the digits is only 9640.
99 is the largest two digit number. If I can use the digits anyway I want, then 9 to the 9th power is larger
999,987,654
99,998,765
9987654321
You go for 99.
99Another Answer:-99 = 387420489
974. If you mean the largest one with ONLY the digits 4 and 7, then 774. If it can only contain 7 and 4 but doesn't have to have both, then 777.
To find the largest number composed of only two user-defined digits that is less than a specified limit in MATLAB, you can use the following code: digits = input('Enter two digits (e.g., [3 7]): '); limit = input('Enter the limit: '); largest = -1; for i = 0:floor(limit/10) for j = 0:floor(limit/10) num = digits(1)*10 + digits(2)*j; if num < limit && num > largest largest = num; end end end disp(['Largest number: ', num2str(largest)]); This code iteratively constructs numbers using the specified digits and checks if they are less than the limit, updating the largest found number accordingly.