Computer Science, asked by preetideou, 4 months ago

Write a C-programing to check whether a given number is even or odd using this methods .
1.using if-else​

Answers

Answered by varunvarun1606
0

Explanation:

Then, whether num is perfectly divisible by 2 or not is checked using the modulus % operator.If the number is perfectly divisible by 2 , testexpression number%2 == 0 evaluates to 1 (true). This means the number is even. However, if the test expression evaluates to 0 (false), the number is odd.

Similar questions