Answer:
To make the value 10 also part of the loop, the while statement must be "while x<=10" otherwise 10 is excluded. To have only even numbers, x should be increased by 2, not 1, i.e.: "x = x + 2".
4.5m questions
5.8m answers