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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started