QUESTION

Text
Image


CHALLENGE ACTIVITY 6.9.2: Writing for loops. Start Nrite a for loop that iterates 6 times. Each iteration: Put ıserNum to output. Then, put "," to output. Then, assign sserNum with userNum multiplied by 2 . Ex: If input is 2, then output is: $?, 4,8,16,32,64$, \begin{tabular}{l|l} \hline 1 & integer userNum \\ 2 & integer $i$ \\ 3 & \\ 4 & // Program will be tested with inputs: 2 and 3 \\ 5 & userNum $=$ Get next input \\ 6 & \\ 7 & \\ 8 & $/ /$ Your solution goes here \\ 9 & \\ \hline Code \end{tabular}


\begin{tabular}{l|l} CHALLENGE & 6.8.3: Writing while loops. \\ ACTIVITY & \end{tabular} Jump to level 1 Write code that iterates while userNum is less than 12. Each iteration: Put userNum to output. Then, put " ". to output. Then, assign userNum with userNum multiplied by 2 . Ex: If input is 1 , then output is: 1_2_4_8_ 1 integer userNum Variables

Public Answer

CE7MXC The First Answerer