Toggle navigation
Delta: Algorithms
Download
Documentation
Partners
Divisors
Print all the divisors of a number
Preview of this algorithm
Variable
Ask for a with default 10
Variable
Set b to 1
List
Create list d
Structure
While b <= a
Structure
If a % b = 0
List
Add b to d
Structure
Else
Structure
End
Variable
Set b to b + 1
Structure
End
Output
Print variable d