In this blog let us see how to count odd and even numbers from a given array-
In this code I have used a dynamic array, which means first we will ask the user for the size of the array and then we will create the array of size as given by the user,
A sample output for the above program-
The inputs given by the user-
The size of array is given as '5'
Inputs-
- 18
- 23
- 332
- 42
- 4543
For any c++ code ask me in the comments below.
I will code and give you the answer, thus making your homework easy.
No comments:
Post a Comment