Originally Posted by
team23
This is ugly c not c++
Fixed.
But seriously, why even bother using code tags if your code has zero indentation? If you were using an editor that had decent auto indenting, you would find that some of the trouble would stand out on its own.
Anyway, here is some indented code for you. Like tabstop, I found all the errors too.
Code:
void main(void)
{
int a;
int b;
int c;
int d;
a = 30;
b = 0;
c = 4;
if (a > c) {
b = c - a;
c = 0;
}
if (b = 0) {
d = a + b + c
}
a = 0;
while (a < 20) {
b = b + 1;
c = c + 1;
}
}