Even or Odd Problem

Create a function  named oddInteger of Boolean data type to determine whether or not an integer is odd. The function should accept a single integer and return a  value of true or false.

 

Create a flowchart and VBA code to solve this problem. Create a command button on the spreadsheet named cmdEvenOdd. Place the code under the Click event of a command button titled “Even or Odd”.

 

Flowchart Solution

Sample Screen Shots

VBA Solution Code