Computer Science, asked by mantashaafreen536, 10 months ago

Write a program to test a number even or not?

Answers

Answered by schannpreet827
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 ramaniranjansatapath
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