SOLUTION: I want to take a number and form a square or rectangle. For example: Triangluar Numbers input = 28 --> 7 columns * 4 rows input=45 --> 9 columns * 5 rows input = 66 --> 11 c

Algebra ->  Rectangles -> SOLUTION: I want to take a number and form a square or rectangle. For example: Triangluar Numbers input = 28 --> 7 columns * 4 rows input=45 --> 9 columns * 5 rows input = 66 --> 11 c      Log On


   



Question 1195181: I want to take a number and form a square or rectangle.
For example:
Triangluar Numbers
input = 28 --> 7 columns * 4 rows
input=45 --> 9 columns * 5 rows
input = 66 --> 11 columns * 6 rows
Non Triangular Numbers
input = 69 --> 7 columns * 9 rows (get as close to a square as possible)
TIA
Millamber

Answer by josgarithmetic(39617) About Me  (Show Source):