Factors of an integer: Difference between revisions
Content added Content deleted
m (→optimized version: added/changed whitespace and comments.) |
m (→optimized version: used a smaller font size for output, used a template for the output section.) |
||
Line 4,130: | Line 4,130: | ||
if j*j==x then return a j b /*Was X a square? Then insert √ x */ |
if j*j==x then return a j b /*Was X a square? Then insert √ x */ |
||
return a b /*return the divisors of both lists. */</lang> |
return a b /*return the divisors of both lists. */</lang> |
||
{{out|output|text= when using the input of: <tt> -6 200 </tt>}} |
|||
⚫ | |||
(Shown at <big>'''<sup>3</sup>/<sub>4</sub>'''</big> size.) |
|||
⚫ | |||
n #divisors divisors |
n #divisors divisors |
||
══════ ═════════ ════════════════════════════════════════════════════════════ |
══════ ═════════ ════════════════════════════════════════════════════════════ |