Problem 3 Write a Matlab program that asks the user to enter a number, a of unknown number of digits, and calculates a.
Posted: Tue Apr 12, 2022 10:22 am
Problem 3 Write a Matlab program that asks the user to enter a number, a of unknown number of digits, and calculates a. The number of the digits b. The sum of the first and the last digit. Output: Enter any number: 6234 Number of digits = 4 Sum of first and last digits = 10 Enter any number :123 Number of digits = 3 Sum of first and last digits = 4 Enter any number 12345 Number of digits = 5 Sum of first and last digits = 6