Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

factors

public class Factors {

    public static void main(String[] args) {

        int number = 60;

        System.out.print("Factors of " + number + " are: ");
        for(int i = 1; i <= number; ++i) {
            if (number % i == 0) {
                System.out.print(i + " ");
            }
Comment

PREVIOUS NEXT
Code Example
Java :: javafx main class 
Java :: how to find the length of a string in java without using length function 
Java :: primitive data types in java 
Java :: 64 bit integer java 
Java :: java get first day of the week 
Java :: set source image in android studio 
Java :: mongodb java find all documents 
Java :: java store hexadecimal value 
Java :: java try and catch 
Java :: send data from service to activity class 
Java :: java check palindrome with string builder 
Java :: change color of drawable android studio 
Java :: convert double into integer 
Java :: java files 
Java :: blurview android github 
Java :: encapsulation in oop 
Java :: how to print in a new line in java using print 
Java :: spring filter exception handling 
Java :: find java_home path in cmd 
Java :: spring boot MVC config 
Java :: java exception 
Java :: java class jar determine 
Java :: java combobox get selected item 
Java :: distance point to line java 
Java :: how to count the number of occurrences of an element in a arraylist in java 
Java :: cardview implementation 
Java :: what coding language is minecraft 
Java :: java get filename without extension 
Java :: sublist java 
Java :: bubble sort in java 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =