We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39d5f9c + d00e0a8 commit e150b77Copy full SHA for e150b77
project-euler/Problem4/solv.m
@@ -5,10 +5,8 @@
5
product = number1 * number2; % builds the new product
6
7
% make sure product is a palindrome number.
8
- if (isPalindromeNumber(product))
9
- if (product > maxPalindrome)
10
- maxPalindrome = product;
11
- endif
+ if (product > maxPalindrome && isPalindromeNumber(product))
+ maxPalindrome = product;
12
endif
13
endfor
14
0 commit comments