hi, I'm miah and i need help for a project.
our task is to create a program that will ask user a positive integer until the user inputted a non-positive number or 0 and then display the product of all positive inputs. Use the following function prototypes. int accept_number();, bool ispositive(int);, int product(int, int);, void display(int);.
the output should look like this:
Enter a number: 3
Enter a number: 10
Enter a number: 2
Enter a number -213
The product is 60.