Using matlab Write a function called evenOdd(), that will do the following (YOU MAY NOT USE ANY LIBRARY FUNCTIONS): a. P
Posted: Mon May 02, 2022 12:18 pm
Using matlab Write a function called evenOdd(), that
will do the following
(YOU MAY NOT USE ANY LIBRARY FUNCTIONS):
a. Places the result of the function in a variable
called evenOddResult, which should start at 0.
b. Accepts two integer parameters called evenNum
and oddNum.
c. Uses a for loop to display the even
numbers from 0 up to and including evenNum. Increment
evenOddResult by 1 each time an even number is
displayed.
d. Uses a for loop to display the odd
numbers from 1 up to and including oddNum. Increment
evenOddResult by 1 each time an even number is
displayed.
will do the following
(YOU MAY NOT USE ANY LIBRARY FUNCTIONS):
a. Places the result of the function in a variable
called evenOddResult, which should start at 0.
b. Accepts two integer parameters called evenNum
and oddNum.
c. Uses a for loop to display the even
numbers from 0 up to and including evenNum. Increment
evenOddResult by 1 each time an even number is
displayed.
d. Uses a for loop to display the odd
numbers from 1 up to and including oddNum. Increment
evenOddResult by 1 each time an even number is
displayed.