#!/usr/bin/perl use strict; use warnings; chomp(my $is = shift); for (1 .. $is) { print "$_ " if ($is % $_ == 0); } print "\n";
In reply to Re: Finding all divisors of an integer
by neniro
in thread Finding all divisors of an integer
by chiburashka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |