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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!