Robert Holder
ScreenHunter_44 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 ForLoops2::runExercise()
{
int col = 0, row = 0; // = is pronounced GETS, == is pronounced EQUALS
for ( row = 0; row < 8; row++ )
{
for ( col = 0; col < 8; col++ )
{
fwcInt( row, col*50, row*50, BLUE, 30);
fwcText( ",", col*50+15, row*50, BLUE, 30);
fwcInt( col, col*50+20, row*50, BLUE, 30);
}
}
}
ScreenHunter_44 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 ForLoops2::runExercise()
{
int col = 0, row = 0; // = is pronounced GETS, == is pronounced EQUALS
for ( row = 0; row < 8; row++ )
{
for ( col = 0; col < 8; col++ )
{
fwcInt( row, col*50, row*50, BLUE, 30);
fwcText( ",", col*50+15, row*50, BLUE, 30);
fwcInt( col, col*50+20, row*50, BLUE, 30);
}
}
}