Computer Science, asked by DebadritoPal, 3 days ago

Write a C++ program to find the total of odd and even numbers separately between zero and a number inputted by the user.​

Answers

Answered by mokshjoshi
0

Answer:

Explanation

First, declare your int array.

Run a for loop from i = 0 to i = size to iterate through the array.

If the element is an even number, skip it.

If the element is an odd number, run another for loop inside the first loop. ...

If the subsequent element is an even number, swap it with the current element.

Answered by murugaa961
0

Answer:

Explanation:

Hope it will help you...

Attachments:
Similar questions