Creating Rectangles

Discussion in 'Geometry and Trigonometry' started by Millamber, Jun 26, 2022.

  1. Millamber

    Millamber

    Joined:
    Jun 26, 2022
    Messages:
    1
    Likes Received:
    0
    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 * 10 rows (get as close to a square as possible)

    TIA
    Millamber
     
    Last edited: Jun 26, 2022
    Millamber, Jun 26, 2022
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...