Consider the following pseudocode: i := 9 x := 17 while (i i…