Description
Given a positive integer, tell whether it is equal to the sum of four consecutive integers.
Input
A positive integer n ( n <2^31 ), each case will be on a separate line.
A zero (0) denotes the end of input.
Output
The phrase “ is not the sum of four consecutive integers.”
or the phrase “ is the sum of four consecutive integers.”,
where is the number in question.
Sample Input
2
5
41
82
0
Sample Output
2 is the sum of four consecutive integers.
5 is not the sum of four consecutive integers.
41 is not the sum of four consecutive integers.
82 is the sum of four consecutive integers.
代码