Find out error in the code given below if num 2 0 cout The-00508

Online Quiz This subjective question is related to the book/course vu cs304 Object Oriented Programming. It can also be found in vu cs304 Mid Term Solved Past Paper No. 1.

Question 1: Find out error in the code given below:
if ( num % 2 = 0 )
cout << "The number is even" << endl;
Answer:
if ( num % 2 = 0 ) There should be extra "e;="e; sign following is right statement is "e;if ( num % 2 == 0 )"e;

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background