Menu

(Solved) : Add Second Output Tried Ways Second Output Always Stays 15 Q44082770 . . .

CSCI 1380: Computer Science l home > 2.2: Programming basics E zyBd Jump to level 1 Write a statement that outputs variable nHow do I add the secondoutput? I have tried other ways but the second output always staysat 15.

CSCI 1380: Computer Science l home > 2.2: Programming basics E zyBd Jump to level 1 Write a statement that outputs variable numitems. End with a newline. 1 #include <iostream> using namespace std; int main() { int numItems; cin >> numItems; // Program will be tested with values: 15, 40. RBS 00 OWN numItems = 15; cout << numItems; cout << endl; return 0; Check Try again X numitems’s value is streamed to cout. Note that there are no quotes around the variable’s name. ✓1: Compare output ^ Input 15 Your output 15 X 2: Compare output A Input 40 Your output Expected output Show transcribed image text CSCI 1380: Computer Science l home > 2.2: Programming basics E zyBd Jump to level 1 Write a statement that outputs variable numitems. End with a newline. 1 #include using namespace std; int main() { int numItems; cin >> numItems; // Program will be tested with values: 15, 40. RBS 00 OWN numItems = 15; cout

Expert Answer


Answer to How do I add the second output? I have tried other ways but the second output always stays at 15. …

OR