c program, to see if divisible by two or not
Answers
Answered by
1
Answer:
Logic to check divisibility of a number
C supports a modulo operator % , that evaluates remainder on division of two operands. You can use this to check if a number is exactly divisible by some number or not. For example - if(8 % 2) , if the given expression evaluates 0 , then 8 is exactly divisible by 2.
Similar questions