Question: C++ Write functions to do the following. Do not change the function signature. Please write the functions, using the given function signature and specifications. Write

C++ Write functions to do the following. Do not change the function signature. Please write the functions, using the given function signature and specifications. Write a function that takes as a parameter an integer, and returns the number of odd, even and zero digits. This should be a void function since a function cannot return 3 values. Here is your function signature: void numberCount(int number, int &oddCount, int &evenCount, int &zeroCount); So, if the user enters 34873045, the number of odd digits is 4, even digits is 3, and zeros is 1. You must use integers, do not use strings.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!