Problem 3 Write a Matlab program that asks the user to enter a number, a of unknown number of digits, and calculates a.
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Problem 3 Write a Matlab program that asks the user to enter a number, a of unknown number of digits, and calculates a.
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!