Write a program to test a number even or not?
Answers
Answered by
2
Answer:
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). This means the number is even.
Explanation:
please make me brainlist answer
Answered by
2
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). This means the number is even.
please mark me as Brainliest and please follow me
I have only Brainliest left for virtouso
Similar questions