Our FREE site is mostly funded by the Amazon ads ⇓below⇓.
Support us by clicking ⇑above⇑ next time you plan to buy a product on Amazon.
product = 0;
maxPalindrome = 0; % saves the current max palindrome number.
for number1 = 999 : -1 : 100
for number2 = 999 : -1 : 100
product = number1 * number2; % builds the new product
% make sure product is a palindrome number.
if (product > maxPalindrome)
maxPalindrome = product;
printf("The greates palindrome number is %d\n",maxPalindrome);