Equal Sides when you added it. Vertical Horizontal or Diagonal - TopicsExpress



          

Equal Sides when you added it. Vertical Horizontal or Diagonal still... Equal :D! Sometimes you must be creative to make a new logic.... Nice magic Square :D! My JCreator program Magic Square :D! import java.io.*; public class magicsquare { public static void main(String[] args) throws IOException{ BufferedReader kei = new BufferedReader(new InputStreamReader(System.in)); int num=0; for(num=1; num%2!=0;num++){ System.out.print("Enter a Number: "); num = Integer.parseInt(kei.readLine()); } num--; int row = num-1; int col = num/2; int[][] magic = new int[num][num]; magic[row][col] = 1; for (int i = 2; i
Posted on: Fri, 06 Sep 2013 09:34:29 +0000

Trending Topics



Recently Viewed Topics




© 2015