Question #include #include<Question #include #include using namespace std; int main() { int number; cout <> number; cout<< number <<endl; if (number<50) cout << "You entered " <<number<< ", which is NOT greater than 50. "; else cout << "You entered " <<number<<", which is greater than 50. "; return 0; } hears my program can not figure out how to fix this error Launch Terminal + bash • Test 2 passed ================================================== ================================================== Running Test 3 Test 3 passed ================================================== ================================================== Running Test 4 ==================== YOUR OUTPUT ===================== 0001: Please~enter~an~integer:~50 0002: You~entered~50,~which~is~greater~than~50. =================== MISMATCH FOUND ON LINE 0002: =================== ACTUAL : You~entered~50,~which~is~greater~than~50. EXPECTED: You~entered~50,~which~is~NOT~greater~than~50. ====================================================== Adjust your program and re-run to test. Test 4 failed ; int main() { int number; cout <> number; cout<< number <<endl; if (number<50) cout << "You entered " <<number<< ", which is NOT greater than 50. "; else cout << "You entered " <<number<<", which is greater than 50. "; return 0; } hears my program can not figure out how to fix this error Launch Terminal + bash • Test 2 passed ================================================== ================================================== Running Test 3 Test 3 passed ================================================== ================================================== Running Test 4 ==================== YOUR OUTPUT ===================== 0001: Please~enter~an~integer:~50 0002: You~entered~50,~which~is~greater~than~50. =================== MISMATCH FOUND ON LINE 0002: =================== ACTUAL : You~entered~50,~which~is~greater~than~50. EXPECTED: You~entered~50,~which~is~NOT~greater~than~50. ====================================================== Adjust your program and re-run to test. Test 4 failed
Question
#include <iostream>#include<string>using namespace std;
int main()
{
int number;
cout <<“Please enter an integer: “;
cin >> number;
cout<< number <<endl;
if (number<50)
cout << “You entered ” <<number<< “, which is NOT greater than 50. “;
else
cout << “You entered ” <<number<<“, which is greater than 50. “;
return 0;
}
hears my program can not figure out how to fix this errorLaunch Terminal
+
bash
•
Test 2 passed
==================================================
==================================================
Running Test 3
Test 3 passed
==================================================
==================================================
Running Test 4
==================== YOUR OUTPUT =====================
0001: Please~enter~an~integer:~50
0002: You~entered~50,~which~is~greater~than~50.
=================== MISMATCH FOUND ON LINE 0002: ===================
ACTUAL : You~entered~50,~which~is~greater~than~50.
EXPECTED: You~entered~50,~which~is~NOT~greater~than~50.
======================================================
Adjust your program and re-run to test.
Test 4 failed