C Compiling Error while printing : I am a noob at C.

My code:

    #include <stdio.h>
    int main() {
            int M, N, O, P;
            printf("Enter the value of M\n");
            scanf("%d", &M);
            N = 3*M^2;
            O = M + N;
            P = M + M;
            printf("The value of %d \n", M + %d \n", M equals %d \n", P  %d \n", N  %d \n", O);
            return 0;
    }

The error: 

> test.c: In function 'main':
> test.c:9: error: expected expression before '%' token
> test.c:9: error: stray '\' in program
> test.c:9: error: stray '\' in program

I can't figure out how to properly print the values of M,N,O,P and test alongside with it.
And have been searching for a while too.
Please let me know if you see the problem.
Thanks.
Shahriar

