Int I 1 Int Number Multi Remain Number Int Answer Ii While I 5 Remain Number 10 Number Number 1 (33.16 KiB) Viewed 28 times
Int I 1 Int Number Multi Remain Number Int Answer Ii While I 5 Remain Number 10 Number Number 2 (22.38 KiB) Viewed 28 times
Int I 1 Int Number Multi Remain Number Int Answer Ii While I 5 Remain Number 10 Number Number 3 (20.06 KiB) Viewed 28 times
int i = 1; int number, multi, remain; number = ??; int answer II while(i != 5) { remain = number % 10; number = number / 10; multi = pow(10, 4 i); answer = answer + (remain i++; } multi); Consider the whole loop abovo, use the last digits of your student for the variable number and fill in the banks with the content of each variable everytime the loop runa. Write in values for each variable every Iteration of the Loop you think will happen you think tun will not happen, you can fill up every variable in that ran with NULL Run 1 remain number multi answer
Run 2 remain number = multi- swer Run 3 remain number multi = answer Run 4 remain = naimber multi answer =
2 Run 5 remain = number = multi = answer (Bonus 5 points) What was the purpose of the loop? What did it do to your student ID number? You can put your extra credit answer in number 4'5 textbox, just indicate that it is the extra credit.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!