PLEASE USE MATLAB
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.
PLEASE USE MATLAB
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am