Write A Program in Java to print how many factors a number has
P.S-I study in Class VIII kindly dont use scanner commands..I am just a basic learner
Answers
Answered by
0
Answer:
Gravity or gravitation is a natural phenomenon by which all things with mass or energy—including planets, stars, galaxies, and even light—are brought toward one another. Gravity is a physical connection between space and matter that is precisely described by Einstein’s geometric theory of gravity.
Answered by
1
Answer:
OKKKK
Explanation:
Factors of 60 are: 1 2 3 4 5 6 10 12 15 20 30 60
In the above program, number whose factors are to be found is stored in the variable number (60).
The for loop is iterated until i <= number is false. In each iteration, whether number is exactly divisible by i is checked (condition for i to be the factor of number) and the value of i is incremented by 1
Similar questions