Ok, your probally looking for something like this.
Code:
#include <iostream.h>
int main()
{
int a,b,c,d,e,m,p,q,r,w,x,y;
a = 2;
b = 3;
c = 4;
d = 5;
e = 6;
m = 2;
p = 3;
q = 4;
r = 5;
w = 5;
x = 4;
m=(a+b+c+d+e)/5;
printf("m = %d\n",m);
y=mx+b;
printf("y = %d\n",y);
z=pr%q+w/x-y;
printf("z = %d\n",z);
y=ax^2+bx+c;
printf("y = %d\n",y);
}
There is your program, I wasn't sure if you wanted a program that does other stuff, like ask you what equation you want and such. Just to let you know, the equations will be messed up, it is taking what y got in that equation and using it in the next one, not sure if you wanted that. If you need anything else feel free to post or sens me a message.