Babbage problem: Difference between revisions
Content deleted Content added
Add MATLAB implementation |
fix typo "syntaxhighligh" -> "syntaxhighlight" |
||
Line 2,804: | Line 2,804: | ||
clear all;close all;clc; |
clear all;close all;clc; |
||
BabbageProblem(); |
BabbageProblem(); |
||
function BabbageProblem |
function BabbageProblem |
||
Line 2,824: | Line 2,823: | ||
fprintf('The smallest positive integer whose square ends in 269696 = %d\n', x); |
fprintf('The smallest positive integer whose square ends in 269696 = %d\n', x); |
||
end |
end |
||
</syntaxhighlight> |
|||
</syntaxhighligh> |
|||
{{out}} |
{{out}} |
||
<pre> |
<pre> |