package UP_kontrolno1;
import java.util.Scanner;

/**
 *
 * @author Михаил Николов
 */
public class zad1 {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        System.out.print("Намиране на делителите на число.\nВъведете число: ");
        int chislo = input.nextInt();

        System.out.print("\nДелителите на " + chislo + " са: 1, ");
        for(int i=2; i<chislo; i++) {
            if(chislo%i == 0) {
                System.out.print(i + ", ");
            }
        }

        System.out.println(chislo + ".");
    }

}
