Skip to content

thebeaarr/magic_square

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magic Square in C

This project implements a magic square generator using the Samoise method in C. A magic square is an n x n grid where the sum of each row, column, and diagonal is the same. The program works for odd values of n.

Features

  • Generates a magic square of any odd order.
  • Efficient memory management.
  • Clean output formatting for visualization.

Usage

Compilation

To compile the program, run:

gcc -o magic_square magic_square.c

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published