Question: Write single C statements that a) Input integer variable x with scanf. b) Input integer variable y with scanf. c) Initialize integer variable i to
Write single C statements that a) Input integer variable x with scanf. b) Input integer variable y with scanf. c) Initialize integer variable i to 1. d) Initialize integer variable power to 1. e) Multiply variable power by x and assign the result to power. f) Increment variable i by 1. g) Test i to see if its less than or equal to y in the condition of a while statement. h) Output integer variable power with printf.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
