- #1
ineedhelpnow
- 651
- 0
Write an expression that prints "Special number" if specialNum is -99, 0, or 44.
Sample program:
i thought it would be
but its not
Sample program:
Code:
#include <iostream>
using namespace std;
int main() {
int specialNum = 0;
specialNum = 17;
if (<STUDENT CODE>) {
cout << "Special number" << endl;
}
else {
cout << "Not special number" << endl;
}
return 0;
}
i thought it would be
Code:
(specialNum == -99) || (specialNum == 0) || (specialNum = 44)