Help me in solving MATHMCQ4 problem

My issue

explain it

My code

5894

Learning course: Basic Math using C++
Problem Link: Multiple Choice Question Practice Problem in - CodeChef

@hassanqurashi1

Correct Answer(s):

If A = 9, Bob takes it home.
If A = 35, Charlie takes it home.
Explanation:
When A is 35, even though it is divisible by 7, it is not even. Hence Alice won't take it.