DISPLAY THE FACTORS AND THEIR COUNT FOR A GIVEN NUMBER.
SAMPLE DIALOGUES:
1
Type a number: 9
The factors of 9 are 1,3,9.
There are 3 factors.
2
Type a number: 12
The factors of 12 are 1,2,3,4,6,12.
There are 6 factors.
DISPLAY THE FACTORS AND THEIR COUNT FOR A GIVEN NUMBER.
SAMPLE DIALOGUES:
Type a number: 9
The factors of 9 are 1,3,9.
There are 3 factors.
Type a number: 12
The factors of 12 are 1,2,3,4,6,12.
There are 6 factors.
Solved? Can you extract the prime factors for any random number? The prime factors for 12 are not what are shown, but are 1, 2, and 3, and the prime factors are what count.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.