ScreenHunter_46 Aug. 21 09.54

github.com/FeetWetCoding/FeetWetCoding/blob/master/exerci...

 

// copyright (c) 2011 Robert Holder, Janice Dugger.

// See HELP.html included in this distribution.

 

#include

 

void IfThen1::runExercise()

{

int x=0, y=0; // = is pronounced GETS, == is pronounced EQUALS

int horizontalstep=70, verticalstep=70;

Color color = BLUE;

 

while ( x < 400 )

{

while ( y < 400 )

{

if ( x y) color = BLUE;

fwcRectangle(x, y, 40, 40, color, 1, true);

y += verticalstep;

}

y=0;

x += horizontalstep;

}

}

179 views
0 faves
0 comments
Uploaded on August 21, 2012
Taken on August 21, 2012