Question: There are some Pseudocode and program. Write a simple trace table for each of them to determine the execution of the loop. (trace table: write
There are some Pseudocode and program.
Write a simple trace table for each of them to determine the execution of the loop. (trace table: write all the variable and printout in the order of the code)
(If there is an infinite loop, trace the table for at least 5 rounds and indicate it is infinite.)


Set num to o WHILE (num is less than 10) Print num Set num to num + 2 Set num to 10 WHILE (num is greater than 0) Print num Set num to num + 2 Set num to 0 WHILE (num is less than 10) Print num Set num to num - 2 Set num to 11 WHILE (num is not zero) Print num Set num to num - 2 ***** IU string stars = string stripes int i = 0; =="; while (i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
