Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
638 B
1
Indexable
Never
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author AdvancedLab
 */
import java.util.Scanner;
public class NewClass {
    public static void main(String[] args)
    {
        Scanner a= new Scanner(System.in);
        int number= a.nextInt();
        System.out.println("The divisors are = ");
        for(int i=1; i<=number; i++)
        {
            if(number%i==0)
            {
                System.out.println(i);
            }
        }
    }
    
}