From 4080b8326b444e21b16f54507c232edf1d5ff185 Mon Sep 17 00:00:00 2001 From: po79yr3at Date: Sun, 29 Oct 2023 15:12:48 +0800 Subject: [PATCH] ADD file via upload --- format.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 format.c diff --git a/format.c b/format.c new file mode 100644 index 0000000..cffbbcb --- /dev/null +++ b/format.c @@ -0,0 +1,17 @@ +#include "all.h" + +int main(){ + int board1[9][9] = + {{8, 3, 0, 0, 7, 0, 0, 0, 0}, + {6, 0, 0, 1, 9, 5, 0, 0, 0}, + {0, 9, 8, 0, 0, 0, 0, 6, 0}, + {8, 0, 0, 0, 6, 0, 0, 0, 3}, + {4, 0, 0, 8, 0, 3, 0, 0, 1}, + {7, 0, 0, 0, 2, 0, 0, 0, 6}, + {0, 6, 0, 0, 0, 0, 2, 8, 0}, + {0, 0, 0, 4, 1, 9, 0, 0, 5}, + {0, 0, 0, 0, 8, 0, 0, 7, 9}}; + struct Sudoku s; + sudokufromArray(board1, &s); + sudokuPrint(s); +} \ No newline at end of file