Divisors

Stamford University Bangl...
Limits 1s, 512 MB

Read an integer variable and print all of its divisors (including 1 and the number itself).

Input

The input will contain an integer $A$ ($0 < A < 100$).

Output

Print the divisors in increasing order, one per line.

Sample

InputOutput
6
1
2
3
6

Submit

Login to submit.

Contributors

Statistics

97% Solution Ratio
ashik_jiddneyEarliest, Nov '18
ashik_jiddneyFastest, 0.0s
Jinia_YesminLightest, 0 B
n4o847Shortest, 26B
Toph uses cookies. By continuing you agree to our Cookie Policy.