[solved] – Question 99417
Write an expression that will cause “Foot or more” to print if the value of numInches is greater than or equal to 12.
#include <iostream>
using namespace std;
int main() {
int userNum;
cin >> userNum; // Program will be tested with values: 1, 2, 3, 4.
if (userNum = 2) {
cout << “Num is less or equal to two” << endl;
}
else {
cout << “Num is greater than two” << endl;
}
return 0;
}
Expert Answer
OR