Computer Science, asked by rakeshvaibhav2014, 11 months ago

Explain the meaning of each of the following lines in the context of programming:
(i) int i;
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 Mukeshgorain338
14

Explanation:

(i) initialize the variable i , remain ,evenodd=31

(ii) remain store the value of remainder of evenodd

(iii)Checking if the value of remain is zero or not

(iv)if the reamin value is 0 then it display (The Number is an Even number )

(v) Otherwise its display the number is ODD number

Similar questions