Question: Create a program that will accept a number that will be the basis of the number of times a user can input different numeric values.

Create a program that will accept a number that will be the basis of the number of times a user can input different numeric values. The user will then input numbers based on the initial input. Identify the sum/total of all numbers but segregating the total for ODD and EVEN. Display the sum of both ODD and EVEN.

Sample output:

Please enter the count of input: 5

Please input No.1: 3 Please input No.2: 2 Please input No.3: 10 Please input No.4: 7 Please input No.5: 1

The total no of ODD is 3 and the sum is 11. The total no of EVEN is 2 and the sum is 12.

Using Matlab. Thanks!

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!