Thursday 2 December 2010

Find out error in the code given below:

if ( num % 2 = 0 )
cout << "The number is even" << endl;
if ( num % 2 = 0 ) There should be extra = sign following is right statement
if ( num % 2 = =0 )

No comments:

Post a Comment