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]

24th Dec 2021, 12:21 PM
Дузана Ажыбекова
Дузана Ажыбекова - avatar
2 Answers
+ 2
What have you tried so far? Try your self first and Post your attempt ... Happy learning...
24th Dec 2021, 12:36 PM
Jayakrishna šŸ‡®šŸ‡³
+ 2
I think you mean "prime factors", not "probabilities". This web page answers your question: https://www.geeksforgeeks.org/prime-factor/
24th Dec 2021, 2:30 PM
Brian
Brian - avatar