Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

mostrar divisores java

public class Divisor {

public static void main(String[] args) {
    int numero = 18; 
  
    for(int i = 1 ; i <=numero ; i++){
        if(numero%i==0){
            System.out.println(i);
        }
    }
}
}
Source by es.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mostrar #divisores #java
ADD COMMENT
Topic
Name
2+5 =