Computer Science, asked by amishakandari8, 1 year ago

0
Explain the meaning of each of the following lines in the context of programming:
(1) inti:
int remain, evenodd=31;
(ii) remain = evenodd%2;
(iii) if (remain=0)
(iv)printf("The Number is an EVEN number");
(v) else printf("The Number is an ODD number");​

Answers

Answered by GOWSHI07
10

Explanation:

I is an integer that is get from user ,It may be odd or even.%operator perform division and gives reminder.

So I is divided by 2.if remainder is 0 it is even otherwise odd.

Similar questions