First i would like to tell problem with your code ,see all the elements of the array are initalized with value o
when you define it.
Now you are adding lement whenever any odd no found so it could...