#B3953. Factors of a Positive Integer
Factors of a Positive Integer
Factors of a Positive Integer
Given a positive integer (a), if a positive integer (b) divides (a) (i.e., (a \mod b = 0)), then (b) is called a factor of (a).
Write a program to output all factors of (a) in ascending order.
inputFormat
The input consists of a single positive integer (a).
outputFormat
Output all factors of (a) in ascending order, separated by spaces.
sample
6
1 2 3 6