Robert Holder
ScreenHunter_38 Aug. 21 09.53
github.com/FeetWetCoding/FeetWetCoding/blob/master/exerci...
// copyright (c) 2011 Robert Holder, Janice Dugger.
// See HELP.html included in this distribution.
#include
void WhileLoop2::runExercise()
{
int x=0; // = is pronounced GETS, == is pronounced EQUALS
int horizontalstep=15;
while ( x < 400 )
{
x += horizontalstep;
fwcLine(200, 0, x, 200, BLUE, 1);
}
x=0;
while ( x < 400 )
{
x += horizontalstep;
fwcLine(200, 400, x, 200, RED, 1);
}
}
ScreenHunter_38 Aug. 21 09.53
github.com/FeetWetCoding/FeetWetCoding/blob/master/exerci...
// copyright (c) 2011 Robert Holder, Janice Dugger.
// See HELP.html included in this distribution.
#include
void WhileLoop2::runExercise()
{
int x=0; // = is pronounced GETS, == is pronounced EQUALS
int horizontalstep=15;
while ( x < 400 )
{
x += horizontalstep;
fwcLine(200, 0, x, 200, BLUE, 1);
}
x=0;
while ( x < 400 )
{
x += horizontalstep;
fwcLine(200, 400, x, 200, RED, 1);
}
}
