C program to find nth power of a matrix

C program to find nth power of a matrix


Input:

Enter the elements of matrix:
1 2 3
4 5 6
7 8 9
Enter the power:
3

Output:

1       8     27
64    125  216
343  512  729

Implementation: