Question: I need help coding an expression for this Lab simulation. I am still very new to the subject of using expression so I am having
I need help coding an expression for this Lab simulation. I am still very new to the subject of using expression so I am having a difficult time coding lab simulation:
Enter a expression that prints "Special number" if specialNum is -99, 0, or 44.
#include
using namespace std;
int main() {
int specialNum = 0;
specialNum = 17;
if (/* Your solution goes here*/) {
cout << "Special number" << endl;
}
else {
cout << "Not special number" << endl;
}
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
