0
Please help me write the code
Write a function that writes the probabilities of the number entered by the user. Example: If you say 10, you should write [1,2,5,10]
2 Answers
+ 2
What have you tried so far? Try your self first and Post your attempt ...
Happy learning...
+ 2
I think you mean "prime factors", not "probabilities".
This web page answers your question: https://www.geeksforgeeks.org/prime-factor/