it came down to this. This is a different copy from my original file so I screwed around with it a bit. I'm sure it's obviously still full of errors so I think I'll just call it a night
Code:
#include <stdio.h>
#include <math.h>
main()
{
int p1= 18*2;
int p2=2*4;
int p3=2*z*z*y;
int p4=6*y*y;
int p5=4*p*p;
printf("Directions:\n");
printf("Simplify the monomials.\n");
printf("I believe the ^ key is invalid in C\n");
printf("plz write out your answer using parentheses.\n");
printf("ex. 2*x instead of 2x because 2x is an invalid variable here.\n");
/*--------------------------------------------------------*/
int x;
int y;
int z;
printf("54*x*y*2, 36*z*5*x\n");
scanf("%d/%d/%d",&x,&y,&z);
if (p1 != 18*z)
{ printf("Incorrect\n"); }
else
{ printf("Correct\n"); }
system("pause");
/*-----------------------------------------------------*/
int a[2];
int c;
int b;
printf("74*a*c, 116*b*3*a\n");
scanf("%d/%d/%d",&a,&b,&c);
if (p2 != 2*4)
{ printf("Incorrect\n\a"); }
else
{ printf("Correct\n"); }
system("pause");
/*------------------------------------------------------*/
int x[2];
int y[2];
int z[2];
int t;
printf("2*x*y*z*4*t*3, 14*x*z*2*y*5\n");
scanf("%d/%d/%d", &x,&z,&y);
if (p3 != 2*z*z*y)
{ printf("Incorrect\n"); }
else
{ printf("Correct\n");}
system("pause");
/*---------------------------------------------------------*/
int y;
printf("6*y*2, 12*y*2\n");
scanf("%d", &y);
if (p4 != 6*y*y)
{ printf("incorrect\n\a"); }
else
{ printf("correct\n"); }
system("pause");
/*-------------------------------------------------*/
int m;
int p;
int x;
int p;
printf("8*m*p*3, 20*x*7*p*5\n");
scanf("%d/%d/%d", &m,&p,&x);
if (p5 != 4*p*p)
{ printf("Incorrect\a\n"); }
else
{ printf("Correct\n"); }
printf("Thank you for playing!\n");
system("pause");
return 0;
}