How can I find a program in java to accept a number from the user and print all the prime factors of the number. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I find a program in java to accept a number from the user and print all the prime factors of the number.

I want this program in a simple program with counter declaration without using stream reader classes and without too much of comment lines.I want a full complete program of it.

30th May 2017, 1:13 PM
Rishita Singh
Rishita Singh - avatar
1 Answer
0
use Scanner class to read input. Then...some maths algorithm 😂
30th May 2017, 3:58 PM
Veii Xhen
Veii Xhen - avatar