Well, I am still a beginner myself, but I will try to help. First of all, it is usually best to enclose your code in the code tags. It makes it easier to read. I have made a few changes. Take a looko at my code below to see them. I am not sure that this line is legal: a=b=33;. Your "a>c" is not in () like it should be. That was probably your most fatal mistake. Also, I always enclose if/else statements in {} so they read like this if(true){code here}else{other code}. You do not need to say "then" as C++ implies it. I wasn't sure what you were aiming for with b-=c;. I assumed it was a typo and it was fixed in my code below. I have not compiled this code but it should work now.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <iostream.h>
int main()
{
int a,b,c=10;
a=33;
b=33;
if (a>c)
{
b=b+c;
} else {
b=c;
}
cout << a <<' ' << b << ' ' << c << '\n';
return 0;
}