Changes

Jump to: navigation, search

Team Mighty Morphin Coding Rangers - OOP344

1 byte removed, 15:52, 30 January 2010
m
Coding Style
int x; //Notice the four spaces over <br/>
int y; <br/><br/>
for (x = 0, y = 10; x < 10 && y > 0; x++, y++) { <br/>
printf("x is %d, y is %d\n", x, y); <br/>
printf("The sum of x and y is %d\n", x + y); <br/>
if (x == 5) //Moved four spaces over again <br/> printf("We've reached the halfway point!\n"); //Moved four spaces over
} <br/><br/>
printf("Hello, world!\n"); <br/>
} <br/>
</code>
1
edit

Navigation menu