1. read (a) 2. x = 1 3. b = x + a 4. a = a + 1 5. if (b > 0) then 6. if (a > 1) then 7. x = 2 8. write (x)