Divisors of n
Given a number n
your task is to find out all the divisors of n
.
The input consists of a single number n
(1 ≤ n ≤ 1000).
The program should print all the divisors of n
each on a separate line.
Input | Output |
---|---|
7 | 1 |
16 | 1 |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB