---------------------------- if (hasWater) then for (int i = 0; i < time; i++) boilWater(); endfor endif ---------------------------- while (userNum < 100) userNum = prompt "Number?" if (userNum % 2 == 0) then print "even" endif endwhile ---------------------------- for (int i = 0; i < 3; i = i + 1) for (int j = 0; j < 3; j = j + 1) print i + “ “ + j endfor endfor output: 0 0 0 1 0 2 1 0 1 1 1 2 2 0 2 1 2 2 ---------------------------- String user = "x" while (user != "quit") int high = prompt "Count to?" for (int i = 0; i < high; i = i + 1) print i endfor user = prompt "again or quit?" endwhile ---------------------------- num income do income = prompt "income?" while (income < 0) print "income?" input income while (income < 0) print "no negative income)" income = prompt "income?" endwhile -------------------------------------------- int score = prompt " what was your score?" if (score >= 100) then for(int count = 0; count < 10; count = count + 1) print "Congrats!!!" endfor endif ---------------------------- int highest = -1 // start off lower than legal values int userNum for (int count = 0; count < 10; count = count + 1) // make user repeat until the number is legal do userNum = prompt "Enter number from 0 to 100" while (userNum <0 || userNum > 100) // check if this is our new highest number if (userNum > highest) then highest = userNum endif endfor print "the highest number was " + highest