Question: Problem 2: Write a MATLAB program that reads a 4-digit integer and checks if check whether the multiplication of the 4 digits is odd or
Problem 2: Write a MATLAB program that reads a 4-digit integer and checks if check whether the multiplication of the 4 digits is odd or even (Hint: use the remainder and the division operations to separate numbers). For example: 1331 =1*3*3* 1 = 9 ODD. (User entered values are indicated in bold): Example: Enter a 4-digit integer: 123 Invalid digits Enter a 4-digit integer: 1234 The multiplication of the four digits is EVEN
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
