/* Mini Sudoku (15 points) Problem Statement: Write a C program that prints only one of the 9 large squares of a sudoku puzzle. The program must ask the user to enter 9 numbers and then print a table as shown in the two examples below. ------------- | 1 | 2 | 3 | |---+---+---| | 4 | 5 | 6 | |---+---+---| | 7 | 8 | 9 | ------------- ------------- | 7 | 4 | 5 | |---+---+---| | 1 | 3 | 9 | |---+---+---| | 6 | 2 | 8 | ------------- The program can assume that the user will always enter singel digit integers (i.e., 1-9) and that the user will not repeat a number. All numbers in the table must be centered with one space befor and after them. The program must use at least one function to print parts of the sudoku square (e.g., a single row, or a single ---- line). */ #include #include void printHLine1() { printf("-------------\n"); } void printHLine2() { printf("|---+---+---|\n"); } void printNumberLine(int a, int b, int c) { printf("| %d | %d | %d |\n", a, b, c); } int main() { int a, b, c; int d, e, f; int g, h, i; printf("Enter a number: "); scanf("%d",&a); printf("Enter a number: "); scanf("%d",&b); printf("Enter a number: "); scanf("%d",&c); printf("Enter a number: "); scanf("%d",&d); printf("Enter a number: "); scanf("%d",&e); printf("Enter a number: "); scanf("%d",&f); printf("Enter a number: "); scanf("%d",&g); printf("Enter a number: "); scanf("%d",&h); printf("Enter a number: "); scanf("%d",&i); printHLine1(); printNumberLine(a, b, c); printHLine2(); printNumberLine(d, e, f); printHLine2(); printNumberLine(g, h, i); printHLine1(); system("pause"); }