Write a program that reads a positive integer.
If the integer is a multiple of 3 but not a multiple of 5, output 1
.
If the integer is a multiple of 5 but not a multiple of 3, output 1
.
In all other cases, output 0
.
For example:
If the input is 36
or 20
, the output should be 1
.
If the input is 30
or 7
, the output should be 0
.
A positive integer
The result of the rules.
If the input is 36
or 20
, the output should be 1
.
If the input is 30
or 7
, the output should be 0
.