John-Li/my_programs — comment on commit 44e67d5e81ec59399ae000961df127dd7e4ee06c
File:  line 0
By gmile:

Simplify the program by using ternary operator.