Question: could use some help programing in C keep doubling - 1, 2, 4, 8, etc. 1 Finclude he program should read a single integer value,
could use some help programing in C

keep doubling - 1, 2, 4, 8, etc. 1 Finclude he program should read a single integer value, which you can assume is non-negative. It should then print the output 3 int main(void) 4 // Declare variable to store input /I TODO Answer is R where 6 // Read the input value // TODO R 2 (2 raised to the power n) 9 where n is the input value. You can compute this value by setting an integer variable to 1 and // Declare variable to repeatedly double the value of, // and initialize it // TODO then doubling its value the number of times equal to the input valuen Example: if the input is 3, the output should be Answer is 8, because 12x2x2 8 Example: if the input is 5, the output should be Answer is 32, because 1x2x2x2x22 Note that if the input is 0, then the output should be Answer is 1 Hints 13 14 15 16 17 32 // Use a loop to double the variable as many times // as necessary // TODO // Print the output /I TODO You will need at least three variables: one for the input, one to store the value you are doubling, and one to serve as a loop variable Use a for loop to count from 1 to n, where n is the input value Make sure your output is in the form Answer is R, where R is the result. . 19 20 21 22) . return e; Author: David Hovemeyer