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
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
Chemistry,
5 months ago
India Languages,
5 months ago
English,
11 months ago
Math,
11 months ago
Math,
1 year ago