}
}
cin >> Result;
cout << \<
void NewQuestion(int& int1,int& int2) { } //
int main( ) {
int num1;
cout << setw( 10 ) <<\< NewQuestion(num1,num2); int num2; srand( time( 0 ) ); int2 = 0 + rand( ) % 10; cout << setw( 5 ) << int1 << \ << int2 << \; int1 = 0 + rand( ) % 10; do{ cin>> Result; while ( Result != num1* num2 ) } 6.57 #include { cout << \< cout << \<<\< } }while( Result != num1* num2 ); void NewQuestion(int&,int&); //int Resultvalue( ); int main( ) { } int Rcase = 1 + rand() % 4; switch( Rcase ) { case 1: cout << \<<\< //cout << \ cin >> Result; int num1; srand( time( 0 ) ); cout << setw( 10 ) <<\< NewQuestion(num1,num2); cin>> Result; while ( Result != num1* num2 ) int Wcase = 1 + rand() % 4; switch( Wcase ) { case 1: cout << \< cout << \< cout << \< cout << \< { int num2; loop: case 2: case 3: case 4: default: } break; cout << \<<\< cout << \<<\< cout << \<<\< case 2: case 3: case 4: default: //cout << \ NewQuestion(num1,num2); cin>> Result; goto loop; void NewQuestion(int& int1,int& int2) { int1 = 0 + rand( ) % 10; } 6.58 #include void NewQuestion(int&,int&); //int Resultvalue( ); int main( ) { int num1; double Wcounter1 = 1; double Rcounter2 = 0; srand( time( 0 ) ); cout << setw( 10 ) <<\< int2 = 0 + rand( ) % 10; cout << setw( 5 ) << int1 << \ << int2 << \; int Result; NewQuestion(num1,num2); cin>> Result; while ( Result != num1* num2 ) ++Wcounter1; int Wcase = 1 + rand() % 4; switch( Wcase ) { case 1: } //cout << \ cin >> Result; if ( Wcounter1 + Rcounter2 == 10 ) goto next; ++Rcounter2; //right number. int Rcase = 1 + rand() % 4; switch( Rcase ) { case 1: cout << \<<\< cout << \<<\< cout << \<<\< cout << \< cout << \< cout << \< cout << \< { } loop: if ( Wcounter1 + Rcounter2 == 10 )break; case 2: case 3: case 4: default: case 2: case 3: } case 4: cout << \<<\< default: //cout << \ NewQuestion(num1,num2); cin>> Result; goto loop; if( Rcounter2/10.0 <0.75 ) cout << \; next: else if( Rcounter2/10.0 >=0.75 ) cout << \; void NewQuestion(int& int1,int& int2) { int1 = 0 + rand( ) % 10; } 6.59 #include void NewQuestion(int&,int&,int); //int Resultvalue( ); int main( ) { int num1; int choice; int Result; double Wcounter1 = 1; double Rcounter2 = 0; srand( time( 0 ) ); int num2; int2 = 0 + rand( ) % 10; cout << setw( 5 ) << int1 << \ << int2 << \;