Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

urgent help on magic square

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i really really need help on this magic square program. first of all, i have been to numerous websites and still don't get the algorithm. Second, i am supposed to write a code(shown below) that outputs a magic square. could somebody tell ne just generally how to do this? THANK YOU SO MUCH!

 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello "slow poke"-

Welcome to JavaRanch.

On your way in, you may have missed that JavaRanch has a policy on screen names, and yours does not conform to it (it particular, the name must not be obviously fictitious). We take this policy seriously, so please adjust it here.

Thanks, and enjoy your time here.
 
Ulf Dittmer
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As regards your question, it sound like this is a homework assignment or something. We don't provide people with solutions to those - if you have specific questions, though, we'll try to help. What does the program do so far, and what are you stuck with?
 
avelin chen
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i'm sorry, i figured out how to write the code, but i also need to check to see if all the numbers add up correctly. could someone give me some kind of idea to do this? i'm kind of stumped at this point. how would you call the specific numbers in each row? help would be greatly appreciated. does my code look about right so far?

 
reply
    Bookmark Topic Watch Topic
  • New Topic