Edit This Code:
See Result »
Remove the comment (at the beginning of each line) to test each case:
Result: