an array of n numbers is given where n is an even number. the maximum
Answers
Answered by
0
an array of n numbers is given where n is an even number. the maximum is no one
neither even nor odd
take an example:
where n = 6
1,2,3,4,5,6
here,
odd:= 1,3,5....there are 3 odd no.
even = 2,4,6....there are also 3 even no.
therefore ,
when n is even ,
then no. of even = no. of odf
neither even nor odd
take an example:
where n = 6
1,2,3,4,5,6
here,
odd:= 1,3,5....there are 3 odd no.
even = 2,4,6....there are also 3 even no.
therefore ,
when n is even ,
then no. of even = no. of odf
Similar questions