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.
1 parent 9244e32 commit d00e0a8Copy full SHA for d00e0a8
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