Required expression:
specialNum == 0 || specialNum == -99 || specialNum == 44
The whole code:
#include <iostream>
using namespace std;
int main() {
int specialNum;
cin >> specialNum;
if ( specialNum == 0 || specialNum == -99 || specialNum == 44 ) {
cout << "Special number" << endl;
}
else {
cout << "Not special number" << endl;
}
return 0;
}
Comments
Leave a comment