if ( userval [ 0 ] ! = static_cast < char > ( num2 ) )

cout << "you got the question 1 wrong correct answer is " << static_cast < char > ( num2 ) << endl ;

if ( userval [ 1 ] ! = static_cast < char > ( num4 ) )

cout << "you got the question 2 wrong correct answer is " << static_cast < char > ( num4 ) << endl ;

if ( userval [ 2 ] ! = static_cast < char > ( num1 ) )

cout << "you got the question 3 wrong correct answer is " << static_cast < char > ( num1 ) << endl ;

if ( userval [ 3 ] ! = static_cast < char > ( num1 ) )

cout << "you got the question 4 wrong correct answer is " << static_cast < char > ( num1 ) << endl ;

if ( userval [ 4 ] ! = static_cast < char > ( num3 ) )

cout << "you got the question 5 wrong correct answer is " << static_cast < char > ( num3 ) << endl ;

if ( userval [ 5 ] ! = static_cast < char > ( num1 ) )

cout << "you got the question 6 wrong correct answer is " << static_cast < char > ( num1 ) << endl ;

if ( userval [ 6 ] ! = static_cast < char > ( num2 ) )

cout << "you got the question 7 wrong correct answer is " << static_cast < char > ( num2 ) << endl ;

if ( userval [ 7 ] ! = static_cast < char > ( num1 ) )

cout << "you got the question 8 wrong correct answer is " << static_cast < char > ( num1 ) << endl ;

if ( userval [ 8 ] ! = static_cast < char > ( num3 ) )

cout << "you got the question 9 wrong correct answer is " << static_cast < char > ( num3 ) << endl ;

if ( userval [ 9 ] ! = static_cast < char > ( num4 ) )

cout << "you got the question 10 wrong correct answer is " << static_cast < char > ( num4 ) << endl ;

if ( userval [ 10 ] ! = static_cast < char > ( num2 ) )

cout << "you got the question 11 wrong correct answer is " << static_cast < char > ( num2 ) << endl ;

if ( userval [ 11 ] ! = static_cast < char > ( num3 ) )

cout << "you got the question 12 wrong correct answer is " << static_cast < char > ( num3 ) << endl ;

if ( userval [ 12 ] ! = static_cast < char > ( num4 ) )

cout << "you got the question 13wrong correct answer is " << static_cast < char > ( num4 ) << endl ;

if ( userval [ 13 ] ! = static_cast < char > ( num1 ) )

cout << "you got the question 14 wrong correct answer is " << static_cast < char > ( num1 ) << endl ;

if ( userval [ 14 ] ! = static_cast < char > ( num4 ) )

cout << "you got the question 15 wrong correct answer is " << static_cast < char > ( num4 ) << endl ;

if ( userval [ 15 ] ! = static_cast < char > ( num3 ) )

cout << "you got the question 16 wrong correct answer is " << static_cast < char > ( num3 ) << endl ;

if ( userval [ 16 ] ! = static_cast < char > ( num3 ) )

cout << "you got the question 17 wrong correct answer is " << static_cast < char > ( num3 ) << endl ;

if ( userval [ 17 ] ! = static_cast < char > ( num2 ) )

cout << "you got the question 18 wrong correct answer is " << static_cast < char > ( num2 ) << endl ;

if ( userval [ 18 ] ! = static_cast < char > ( num4 ) )

cout << "you got the question 19 wrong correct answer is " << static_cast < char > ( num4 ) << endl ;

if ( userval [ 19 ] ! = static_cast < char > ( num1 ) )

cout << "you got the question 20 wrong correct answer is " << static_cast < char > ( num1 ) << endl ;

cout << endl ;

cout << endl ;

return ( 0 ) ;