We can always replace the if...else with the conditional operator <condition> ? <true case> : <false case> .
That way, the code becomes :
Code: CPP
(A&1) ? printf("%d is odd\n", A) : printf("%d is even\n", A);