Babbage problem: Difference between revisions
Content deleted Content added
Babbage problem in Chipmunk Basic, GW-BASIC and MSX Basic |
Babbage problem in Verilog |
||
Line 4,485:
<pre>The smallest positive integer whose square ends in 269696 is 25264.
Its square is 638269696.</pre>
=={{header|Verilog}}==
<syntaxhighlight lang="Verilog">module main;
real n;
initial begin
while (((n**2) % 1000000) != 269696) n=n+2;
$display("The smallest number whose square ends in 269696 is ", n);
$display("It's square is ", n*n);
end
endmodule</syntaxhighlight>
=={{header|Visual Basic .NET}}==
|