Hello everyone ,
Please can somehow help me with a hint of how to display all the smallest factor of a number ( e.g if i enter 120 the factors should be 2,2,2,3,5 .).
Hello everyone ,
Please can somehow help me with a hint of how to display all the smallest factor of a number ( e.g if i enter 120 the factors should be 2,2,2,3,5 .).
Psuedo-Code
for i = 1 To N
if(N % i == 0) printFactor(i);
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.