- 1

How to find all the factors of a number in java using function (return statement) in java ?

6th Feb 2021, 7:19 PM
Sayanti Ghosh
Sayanti Ghosh - avatar
2 Respuestas
0
So you would like to input something like [16] and get [1, 2, 4, 8, 16] as output?
6th Feb 2021, 7:26 PM
Elijah Brown
Elijah Brown - avatar
0
You need to create a method and pass in arguments and return your array.
6th Feb 2021, 9:13 PM
D_Stark
D_Stark - avatar