wap to print whether the number is even or
Answers
Answered by
0
Explanation:
Enter an integer: -7 -7 is odd. In the program, the integer entered by the user is stored in the variable num . Then, whether num is perfectly divisible by 2 or not is checked using the modulus % operator. If the number is perfectly divisible by 2 , test expression number%2 == 0 evaluates to 1 (true).
Answered by
0
Answer:
Enter an integer: -7 -7 is odd. In the program, the integer entered by the user is stored in the variable num . Then, whether num is perfectly divisible by 2 or not is checked using the modulus % operator. If the number is perfectly divisible by 2 , test expression number%2 == 0 evaluates to 1 (true).
Similar questions
Social Sciences,
1 month ago
Biology,
1 month ago
Geography,
2 months ago
Chemistry,
2 months ago
English,
9 months ago
Math,
9 months ago
Accountancy,
9 months ago