y zy 12, programming basics X #1 /zybook/UNTCSCE1030ShresthaSpring2018/chapter/1
ID: 3878592 • Letter: Y
Question
y zy 12, programming basics X #1 /zybook/UNTCSCE1030ShresthaSpring2018/chapter/1/section/2 me>1.2: Programming basics E zyBooks catalog ALLENGE 123:Output multiple items with one statement. ample solutions) Reset Type a single statement that produces the following output Output the value of the variable userNum, not the literal 92. Hint: Typing Number of chairs is 92" is a common mistake, as is 'Number of chairs is userNum. See above section for how to output a variable's value Number of chairs is 92 coutExplanation / Answer
using variable userNum,
c++ code for output the desired line will be
cout << "Number of chairs is " << userNum << endl;
you can remove the endl at the end of line if not needed.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.