//Find Factors of a positive number.
// By DreamVB

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int x = 1;
    int num = 0;

    printf("Enter a positive number: ");
    scanf("%d",&num);

    while(x <= num){
        if(num % x == 0){
            printf("%d\n",x);
        }
        x++;
    }
    return 0;
}