Solved

Display Correct If Answer Is Equal to 7 and Incorrect

Question 10

Multiple Choice

Display correct if answer is equal to 7 and incorrect if answer is not equal to 7?


A) if answer == 7 ) cout << "correct";
Else
Cout << "incorrect";
B) cout << answer == 7 ? "correct" : "incorrect";
C) cout << answer == 7 ? "correct" : "incorrect" ) ;
D) answer == 7 ? cout << "correct" : cout << "incorrect";

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions