Hello! I was asked to make a magic square solver program.By breaking the program into categories,i must get the user input which will be given with entries separated with commas.So far so good. But i must create lists according to the user input length. For example, if the user inputs 1,2,3,4, this is a 2X2 table, or if it is 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16it should be a 4X4 table.I am thinking to use the modulo operator to make the identification. If we have a 4x4 table i must have 4 lists or if its a 2x2 table it will be 2 lists .Any ideas would be great
Magic square!
Magic square!
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Finding square roots using long division. | jahuja73 | 10 | 8,031 |
Feb-24-2021, 01:25 PM Last Post: jahuja73 |
|
Square reverse sum(overloaded) | shihomiyano | 6 | 5,549 |
Aug-18-2018, 06:27 AM Last Post: micseydel |
|
Perfect Square program | forumer444 | 4 | 11,059 |
Sep-01-2017, 09:32 PM Last Post: forumer444 |
|
Magic Square Puzzle | Harnick | 1 | 5,885 |
Aug-09-2017, 04:51 PM Last Post: nilamo |
|
Square Root on calculator | MP1234593 | 1 | 9,246 |
Jun-06-2017, 06:58 PM Last Post: nilamo |
|
List of square roots python | py7 | 6 | 8,239 |
Apr-08-2017, 11:26 PM Last Post: ichabod801 |
|
Square root of a number | mbestivert | 1 | 4,697 |
Nov-24-2016, 04:35 PM Last Post: casevh |
Users browsing this thread: 1 Guest(s)