Chapter 4: Problem 7
Write single \(C++\) statements that do the following: a. Input integer variable \(x\) with \(\operatorname{cin}\) and \(\gg>\) b. Input integer variable \(y\) with \(\operatorname{cin}\) and \(\gg>\) c. Set integer variable 1 to 1 d. Set integer variable power to 1 e. Multiply variable power by x and assign the result to power. f. Postincrement variable i by 1 g. Determine whether is less than or equal to \(y\). h. Output integer variable power with cout and \(<<\)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.