Write a program to accept a number and display the number of factors it has
Answers
Answered by
11
In the program, a positive integer entered by the user is stored in num . The for loop is iterated until i <= num is false. In each iteration, whether num is exactly divisible by i is checked. It is the condition for i to be a factor of num .
Similar questions