Question PRG-CPP-0032
EasyWhat is the output of this program?
#include <iostream>
using namespace std;
int main() {
int x = 7;
cout << (x % 2 == 0 ? "even" : "odd");
return 0;
}
- A.
1
- B.
odd
- C.
Sign up free to see the answer and a step-by-step explanation.