CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

void jumpjack(athlete somebody,int howmany)

{

int count;
for ( count=1; count<=howmany; count++)
{
somebody.ready();
somebody.up();
somebody.ready();
}

}

Note:

it is possible to declare in the expression:

for(int count=1;count<=howmany;count++)