Bluebook

Exact Divisors

Write a program to read a natural number and then find and print all of its exact divisors (including 1 and itself). Note: Order of output does not matter. 1 2 3 6 is the same as 1 6 2 3

Sample Input

6

Sample Output

1
2
3
6

All Submissions
Best Solutions


Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Oct 26, 2008

Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

Comments (Search)

It's quiet in here...